Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyhb committed Nov 6, 2024
1 parent aaf832a commit a3e3e65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion expr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,8 @@ func TestAddRemove(t *testing.T) {
e := NewAggregateEvaluator(parser, testBoolEvaluator, loader.Load, 0)
ok, err := e.Add(ctx, loader.AddEval(tex(`event.data.foo == "yea" && event.data.bar != "baz"`)))
require.NoError(t, err)
require.Equal(t, ok, float64(0.5))
// now fully aggregated
require.Equal(t, ok, float64(1))
require.Equal(t, 1, e.Len())
require.Equal(t, 0, e.SlowLen())
require.Equal(t, 0, e.FastLen())
Expand Down

0 comments on commit a3e3e65

Please sign in to comment.