Skip to content

Commit

Permalink
added tr definition
Browse files Browse the repository at this point in the history
  • Loading branch information
CordeliaLopez committed Dec 18, 2023
1 parent 5878fba commit 9353159
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/network/tracer/tracer_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2167,8 +2167,7 @@ func (s *TracerSuite) TestPESisDisabledForUnsupportedKernels() {
t.Skip("This test should only be run on kernels < 4.15.0 and RH7")
}
// fail if tracer cannot start
tr = setupTracer(t, cfg)

tr := setupTracer(t, cfg)
require.False(t, tr.cfg.EnableProcessEventMonitoring)
require.Nil(t, tr.processCache)
}
Expand All @@ -2184,8 +2183,7 @@ func (s *TracerSuite) TestPESisEnabledForSupportedKernels() {
t.Skip("This test should only be run on kernels >= 4.15.0 and RH8")
}
// fail if tracer cannot start
tr = setupTracer(t, cfg)

tr := setupTracer(t, cfg)
require.True(t, tr.cfg.EnableProcessEventMonitoring)
require.NotNil(t, tr.processCache)
}

0 comments on commit 9353159

Please sign in to comment.