Skip to content

Commit 721d8ff

Browse files
mtojekpull[bot]
authored andcommitted
chore: log cancellation error in test (#15511)
Related: coder/internal#211
1 parent a1a0c91 commit 721d8ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

provisionersdk/agent_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func TestAgentScript(t *testing.T) {
120120
// Kill the command, wait for the command to yield.
121121
err := cmd.Cancel()
122122
if err != nil {
123-
t.Fatalf("unable to cancel the command, see logs:\n%s", output.String())
123+
t.Fatalf("unable to cancel the command: %v, see logs:\n%s", err, output.String())
124124
}
125125
wg.Wait()
126126

0 commit comments

Comments
 (0)