Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
fearful-symmetry committed Oct 9, 2024
1 parent 8cd4c3a commit 89871ae
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ func TestDefaultProcessorStartup(t *testing.T) {
return cgroup.NewReader(rootfsMountpoint, ignoreRootCgroups)
}

defer func() {
initCgroupPaths = func(_ resolve.Resolver, _ bool) (processors.CGReader, error) {
return testCGReader{}, nil
}
}()

rawCfg := defaultConfig()
cfg, err := config.NewConfigFrom(rawCfg)
require.NoError(t, err)
Expand Down

0 comments on commit 89871ae

Please sign in to comment.