diff --git a/pkg/security/tests/trace_pipe.go b/pkg/security/tests/trace_pipe.go index 973c03f1023ea..424968b2e3aaa 100644 --- a/pkg/security/tests/trace_pipe.go +++ b/pkg/security/tests/trace_pipe.go @@ -94,6 +94,9 @@ func (t *TracePipe) ReadLine() (*TraceEvent, error) { if err != nil { return nil, err } + if line == "\n" { + return nil, io.EOF + } traceEvent, err := parseTraceLine(line) if err != nil { return nil, err