Merge pull request #3584 from rumpl/fix-tty-test

Sleep for 1.5 seconds before looking at the resize error
This commit is contained in:
Sebastiaan van Stijn
2022-05-03 10:13:48 +02:00
committed by GitHub

View File

@ -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()))
}