chore: log cancellation error in test (#15511)

Related: https://github.com/coder/internal/issues/211
This commit is contained in:
Marcin Tojek
2024-11-14 12:47:00 +01:00
committed by GitHub
parent cb1a006ae4
commit e7ab3e1b6a
+1 -1
View File
@@ -120,7 +120,7 @@ func TestAgentScript(t *testing.T) {
// Kill the command, wait for the command to yield.
err := cmd.Cancel()
if err != nil {
t.Fatalf("unable to cancel the command, see logs:\n%s", output.String())
t.Fatalf("unable to cancel the command: %v, see logs:\n%s", err, output.String())
}
wg.Wait()