Skip to content

Commit bab17a3

Browse files
authored
test: improve logging around TestAgentScript (coder#15121)
1 parent 5ebc748 commit bab17a3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

provisionersdk/agent_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ func TestAgentScript(t *testing.T) {
123123
}
124124

125125
// Kill the command, wait for the command to yield.
126-
require.NoError(t, cmd.Cancel())
126+
err := cmd.Cancel()
127+
if err != nil {
128+
t.Fatalf("unable to cancel the command, see logs:\n%s", output.String())
129+
}
127130
wg.Wait()
128131

129132
t.Log(output.String())

0 commit comments

Comments
 (0)