Skip to content

Commit

Permalink
Fix auditbeat login test.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakerouse committed Apr 11, 2024
1 parent 94a7ab4 commit bdc194c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/auditbeat/module/system/login/login_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func TestWtmp(t *testing.T) {
config := getBaseConfig()
config["login.wtmp_file_pattern"] = wtmpFilepath
config["login.btmp_file_pattern"] = ""
f := mbtest.NewReportingMetricSetV2(t, config)
f := mbtest.NewReportingMetricSetV2WithRegistry(t, config, ab.Registry)
defer f.(*MetricSet).utmpReader.bucket.DeleteBucket()

events, errs := mbtest.ReportingFetchV2(f)
Expand Down Expand Up @@ -182,7 +182,7 @@ func TestBtmp(t *testing.T) {
config := getBaseConfig()
config["login.wtmp_file_pattern"] = ""
config["login.btmp_file_pattern"] = "./testdata/btmp*"
f := mbtest.NewReportingMetricSetV2(t, config)
f := mbtest.NewReportingMetricSetV2WithRegistry(t, config, ab.Registry)
defer f.(*MetricSet).utmpReader.bucket.DeleteBucket()

events, errs := mbtest.ReportingFetchV2(f)
Expand Down

0 comments on commit bdc194c

Please sign in to comment.