Skip to content

Commit

Permalink
Fix auditbeat test.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakerouse committed Mar 4, 2024
1 parent 3cc5471 commit 19eead4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x-pack/auditbeat/module/system/socket/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"github.com/elastic/beats/v7/auditbeat/tracing"
"github.com/elastic/beats/v7/libbeat/beat"
"github.com/elastic/beats/v7/metricbeat/mb"
"github.com/elastic/beats/v7/x-pack/auditbeat/module/system"
"github.com/elastic/beats/v7/x-pack/auditbeat/module/system/socket/dns"
)

Expand Down Expand Up @@ -50,7 +51,7 @@ type testingState struct {
}

func (ts *testingState) Event(event mb.Event) bool {
ts.flows = append(ts.flows, event.BeatEvent(moduleName, metricsetName))
ts.flows = append(ts.flows, event.BeatEvent(system.ModuleName, metricsetName))
return true
}

Expand Down

0 comments on commit 19eead4

Please sign in to comment.