feat(go): enrich snapshots with package ownership
This commit is contained in:
parent
6355fb403d
commit
88d7a6e3b8
8 changed files with 149 additions and 54 deletions
|
|
@ -46,6 +46,10 @@ func TestRunAttachesLiveBaselineLifecycle(t *testing.T) {
|
|||
cfg := config.Default()
|
||||
cfg.LogDir = t.TempDir()
|
||||
cfg.BaselineGrace = 0
|
||||
// This fixture exercises listener-baseline lifecycle only. Avoid inheriting
|
||||
// the host's live persistence paths (for example /etc/passwd), whose mtime
|
||||
// would otherwise add an unrelated environment-dependent alert.
|
||||
cfg.Detectors["persistence"] = false
|
||||
calls := 0
|
||||
capture := func() (model.State, error) {
|
||||
calls++
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue