Skip to content

Commit

Permalink
fix(metricpass): Use correct logic expression in benchmark (#14131)
Browse files Browse the repository at this point in the history
  • Loading branch information
srebhan authored Oct 17, 2023
1 parent 9c8c06e commit 7c8200f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -660,8 +660,8 @@ func BenchmarkFilter(b *testing.B) {
name: "metric filter complex",
filter: Filter{
MetricPass: `"source" in tags` +
` and fields.exists(f, type(fields[f]) in [int, uint, double] and fields[f] > 20.0)` +
` and time >= timestamp("2023-04-25T00:00:00Z") - duration("24h")`,
` && fields.exists(f, type(fields[f]) in [int, uint, double] && fields[f] > 20.0)` +
` && time >= timestamp("2023-04-25T00:00:00Z") - duration("24h")`,
},
metric: testutil.MustMetric("cpu",
map[string]string{},
Expand Down

0 comments on commit 7c8200f

Please sign in to comment.