diff --git a/pkg/sensors/exec/fork_test.go b/pkg/sensors/exec/fork_test.go index d162f766a87..06c62f3a4d7 100644 --- a/pkg/sensors/exec/fork_test.go +++ b/pkg/sensors/exec/fork_test.go @@ -52,7 +52,7 @@ func TestFork(t *testing.T) { logWG := testPipes.ParseAndLogCmdOutput(t, fti.ParseLine, nil) logWG.Wait() if err := testCmd.Wait(); err != nil { - t.Fatalf("command failed with %s. Context error: %v", err, ctx.Err()) + t.Fatalf("command failed with %s. Context deadline exceeded", err) } if fti.child1Pid == 0 {