We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c98571b + 797f630 commit 6175356Copy full SHA for 6175356
pkg/integration/cmd/command_test.go
@@ -63,12 +63,12 @@ func TestRunCommandWithTimeoutKilled(t *testing.T) {
63
t.Skip("Needs porting to Windows")
64
}
65
66
- command := []string{"sh", "-c", "while true ; do echo 1 ; sleep .1 ; done"}
67
- result := RunCmd(Cmd{Command: command, Timeout: 500 * time.Millisecond})
+ command := []string{"sh", "-c", "while true ; do echo 1 ; sleep .5 ; done"}
+ result := RunCmd(Cmd{Command: command, Timeout: 1250 * time.Millisecond})
68
result.Assert(t, Expected{Timeout: true})
69
70
ones := strings.Split(result.Stdout(), "\n")
71
- assert.Equal(t, len(ones), 6)
+ assert.Equal(t, len(ones), 4)
72
73
74
func TestRunCommandWithErrors(t *testing.T) {
0 commit comments