Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e7ab3e1

Browse files
authored
chore: log cancellation error in test (#15511)
Related: coder/internal#211
1 parent cb1a006 commit e7ab3e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

provisionersdk/agent_test.go

+1-1
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)