-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flaky test
TestProxySSHJumpHost
(#40052)
* Use testServer.MakeTestServer to fix issue with parallel runs using the same ports. * Add deprecation comments for test server helpers outside of tools/teleport/testenv. * Update tool/teleport/testenv/test_server.go Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com> * Disable SSH resumption Enable LoadAllCAs Update comments * Prevent context.Canceled from being wrapped across transport stream trail doesn't properly handle conversions to and from errors that are context.Canceled which results in code paths trying to evaluate errors.Is(err, context.Canceled) failing. The error recevied is an interceptors.RemoteError, which wraps a trace.TraceErr, which contains a status.Status with codes.Canceled. To work around this until trail is updated the server half of the stream was updated to return an io.EOF if if encouters a canceled error. --------- Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com> Co-authored-by: Tim Ross <tim.ross@goteleport.com>
- Loading branch information
1 parent
48aa797
commit 5c930ca
Showing
6 changed files
with
129 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters