Skip to content

Commit

Permalink
add test logger to wmi
Browse files Browse the repository at this point in the history
  • Loading branch information
powersj committed Sep 18, 2023
1 parent 5434b34 commit e7e2c84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/inputs/win_wmi/win_wmi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ var testQuery = Query{
//nolint:gocritic // sprintfQuotedString - "%s" used by purpose, string escaping is done by special function
Filter: fmt.Sprintf(`NOT Name LIKE "\\\\?\\%%" AND Name LIKE "%s"`, regexp.QuoteMeta(sysDrive)),
TagPropertiesInclude: []string{"Name"},
Logger: new(testutil.Logger)
tagFilter: nil, // this is filled in by CompileInputs()
}

Expand Down

0 comments on commit e7e2c84

Please sign in to comment.