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
commit bfa9b40ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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