mirror of https://github.com/docker/cli.git
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:
commit
bfa9b40ce8
|
@ -25,6 +25,6 @@ func TestInitTtySizeErrors(t *testing.T) {
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
cli := test.NewFakeCli(&fakeClient{containerExecResizeFunc: fakeContainerExecResizeFunc})
|
cli := test.NewFakeCli(&fakeClient{containerExecResizeFunc: fakeContainerExecResizeFunc})
|
||||||
initTtySize(ctx, cli, "8mm8nn8tt8bb", true, fakeResizeTtyFunc)
|
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()))
|
assert.Check(t, is.Equal(expectedError, cli.ErrBuffer().String()))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue