Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tigrato committed Jan 22, 2025
1 parent 435f8cd commit a1b9e2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions integration/kube_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1245,6 +1245,11 @@ func runKubeDisconnectTest(t *testing.T, suite *KubeSuite, tc disconnectTestCase
require.NoError(t, err)
}()

require.Eventually(t, func() bool {
// wait for the shell prompt
return strings.Contains(term.AllOutput(), "#")
}, 5*time.Second, 10*time.Millisecond)

// lets type something followed by "enter" and then hang the session
require.NoError(t, enterInput(sessionCtx, term, "echo boring platypus\r\n", ".*boring platypus.*"))
time.Sleep(tc.disconnectTimeout)
Expand Down

0 comments on commit a1b9e2b

Please sign in to comment.