Skip to content

I'd set MaxWait to a small value for local testing, but the default i…#9478

Merged
ncabatoff merged 2 commits intomasterfrom
fix-ssh-flaky-test
Jul 14, 2020
Merged

I'd set MaxWait to a small value for local testing, but the default i…#9478
ncabatoff merged 2 commits intomasterfrom
fix-ssh-flaky-test

Conversation

@ncabatoff
Copy link
Collaborator

…s probably better for CI.

@ncabatoff
Copy link
Collaborator Author

Example failure this should address: https://circleci.hashicorp.engineering/gh/hashicorp/vault-enterprise/40284#tests/containers/1

=== RUN   TestSSHBackend_DynamicKeyCreate
--- FAIL: TestSSHBackend_DynamicKeyCreate (24.52s)
    backend_test.go:166: Could not connect to SSH docker container: unable to dial sshd to host "127.0.0.1:32844": ssh: handshake failed: read tcp 127.0.0.1:56226->127.0.0.1:32844: read: connection reset by peer


// exponential backoff-retry
pool.MaxWait = 10 * time.Second
//pool.MaxWait = 10 * time.Second
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why leave this commented out and not just remove it entirely?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh, when doing local development the default maxwait is annoyingly high, and I figured I'd save someone from having to lookup how to fix it. Probably wrong-headed, I'll remove it.

Copy link
Contributor

@alexanderbez alexanderbez Jul 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha, maybe just leave a helpful comment instead?

@ncabatoff ncabatoff merged commit c68ab7b into master Jul 14, 2020
@ncabatoff ncabatoff deleted the fix-ssh-flaky-test branch July 14, 2020 18:21
pull bot pushed a commit to mayocream/vault that referenced this pull request Sep 22, 2025
…rp#9478) (hashicorp#9524)

* make allowed and denied_parameters compare lists

* change name of env var

* add changelog

* linter fixes and unnecessary code removal

Co-authored-by: Bruno Oliveira de Souza <bruno.souza@hashicorp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants