Skip to content

Commit 0c2d007

Browse files
committed
Sleep for 1.5 seconds before looking at the resize error
This test is very flaky, the retry loop runs for 550ms and some more, 750ms is cleary not enough for everything to set and for the cli to return the tty resize error. A sleep of 1.5 seconds in this test should be enough for the retry loop to finish. Signed-off-by: Djordje Lukic <[email protected]>
1 parent c76cbdc commit 0c2d007

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/command/container/tty_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ func TestInitTtySizeErrors(t *testing.T) {
2525
ctx := context.Background()
2626
cli := test.NewFakeCli(&fakeClient{containerExecResizeFunc: fakeContainerExecResizeFunc})
2727
initTtySize(ctx, cli, "8mm8nn8tt8bb", true, fakeResizeTtyFunc)
28-
time.Sleep(750 * time.Millisecond)
28+
time.Sleep(1500 * time.Millisecond)
2929
assert.Check(t, is.Equal(expectedError, cli.ErrBuffer().String()))
3030
}

0 commit comments

Comments
 (0)