Skip to content

Commit

Permalink
Merge pull request #3584 from rumpl/fix-tty-test
Browse files Browse the repository at this point in the history
Sleep for 1.5 seconds before looking at the resize error
  • Loading branch information
thaJeztah committed May 3, 2022
2 parents c76cbdc + 0c2d007 commit bfa9b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/command/container/tty_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ func TestInitTtySizeErrors(t *testing.T) {
ctx := context.Background()
cli := test.NewFakeCli(&fakeClient{containerExecResizeFunc: fakeContainerExecResizeFunc})
initTtySize(ctx, cli, "8mm8nn8tt8bb", true, fakeResizeTtyFunc)
time.Sleep(750 * time.Millisecond)
time.Sleep(1500 * time.Millisecond)
assert.Check(t, is.Equal(expectedError, cli.ErrBuffer().String()))
}

0 comments on commit bfa9b40

Please sign in to comment.