From c99a56160206a19289bd4d0d53aa0a6dd52e9e45 Mon Sep 17 00:00:00 2001 From: Marcin Tojek Date: Thu, 14 Nov 2024 12:11:52 +0100 Subject: [PATCH] chore: log cancellation error in test --- provisionersdk/agent_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provisionersdk/agent_test.go b/provisionersdk/agent_test.go index 3be01e20dce6f..142b3f5b860d6 100644 --- a/provisionersdk/agent_test.go +++ b/provisionersdk/agent_test.go @@ -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()