Skip to content

Commit cf937e5

Browse files
committed
Revert changes to tests/containers/base_test.go
1 parent 29c3595 commit cf937e5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/new-e2e/tests/containers/base_test.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,8 @@ func (suite *baseSuite[Env]) testMetric(args *testMetricArgs) {
198198
}
199199

200200
type testLogArgs struct {
201-
Filter testLogFilterArgs
202-
Expect testLogExpectArgs
203-
Optional testLogExpectArgs
201+
Filter testLogFilterArgs
202+
Expect testLogExpectArgs
204203
}
205204

206205
type testLogFilterArgs struct {
@@ -309,9 +308,6 @@ func (suite *baseSuite[Env]) testLog(args *testLogArgs) {
309308
optionalTags := []*regexp.Regexp{
310309
regexp.MustCompile("logsource:.*"),
311310
}
312-
if args.Optional.Tags != nil {
313-
optionalTags = lo.Map(*args.Optional.Tags, func(tag string, _ int) *regexp.Regexp { return regexp.MustCompile(tag) })
314-
}
315311
err := assertTags(logs[len(logs)-1].GetTags(), expectedTags, optionalTags, false)
316312
assert.NoErrorf(c, err, "Tags mismatch on `%s`", prettyLogQuery)
317313
}

0 commit comments

Comments
 (0)