Skip to content

Commit

Permalink
final cleanup of integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rosstimothy committed Sep 7, 2021
1 parent 9dc9763 commit d4bbb01
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4176,10 +4176,7 @@ func testWindowChange(t *testing.T, suite *integrationTestSuite) {
cl.Stdin = personA

err = cl.SSH(context.TODO(), []string{}, false)
switch trace.Unwrap(err).(type) {
case nil, *ssh.ExitError, *ssh.ExitMissingError:
break
default:
if !isSSHError(err) {
require.NoError(t, err)
}
}
Expand Down Expand Up @@ -4216,11 +4213,12 @@ func testWindowChange(t *testing.T, suite *integrationTestSuite) {
for i := 0; i < 10; i++ {
err = cl.Join(context.TODO(), apidefaults.Namespace, session.ID(sessionID), personB)
if err == nil || isSSHError(err) {
err = nil
break
}

require.NoError(t, err)
}

require.NoError(t, err)
}

// waitForOutput checks that the output of the passed in terminal contains
Expand Down

0 comments on commit d4bbb01

Please sign in to comment.