test/integration: poll more quickly in f2a48aee
Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
parent
f2a48aee2b
commit
1a9922d050
@ -606,7 +606,7 @@ func TestImpersonationProxy(t *testing.T) { //nolint:gocyclo // yeah, it's compl
|
|||||||
|
|
||||||
// see that we can read stdout and it spits out stdin output back to us
|
// see that we can read stdout and it spits out stdin output back to us
|
||||||
wantAttachStdout := fmt.Sprintf("VAR: %s\n", echoString)
|
wantAttachStdout := fmt.Sprintf("VAR: %s\n", echoString)
|
||||||
require.Eventuallyf(t, func() bool { return attachStdout.String() == wantAttachStdout }, time.Second*60, time.Second*5, `got "kubectl attach" stdout: %q, wanted: %q (stderr: %q)`, attachStdout.String(), wantAttachStdout, attachStderr.String())
|
require.Eventuallyf(t, func() bool { return attachStdout.String() == wantAttachStdout }, time.Second*60, time.Millisecond*250, `got "kubectl attach" stdout: %q, wanted: %q (stderr: %q)`, attachStdout.String(), wantAttachStdout, attachStderr.String())
|
||||||
|
|
||||||
// close stdin and attach process should exit
|
// close stdin and attach process should exit
|
||||||
err = attachStdin.Close()
|
err = attachStdin.Close()
|
||||||
|
Loading…
Reference in New Issue
Block a user