Skip to content

Commit

Permalink
fix timeout return test
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Feb 14, 2024
1 parent 9a92b5a commit 20213dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal_negate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ func TestExecuteCommandWithNegateTimeout(t *testing.T) {

executeCommandLine(result, &receivedStruct{commandLine: "lib/negate -t 1 -s /bin/sh -c 'sleep 3'", timeout: 10}, &config)
assert.Equal(t, "exec", result.execType, "exec type")
assert.Equal(t, 2, result.returnCode, "return code")
assert.Equal(t, 3, result.returnCode, "return code")
assert.Contains(t, result.output, "Check Timed Out On", "timeout output")
}

0 comments on commit 20213dc

Please sign in to comment.