From a3e3e65ea3658990dce0024b803fb3f0db4cde91 Mon Sep 17 00:00:00 2001 From: Tony Holdstock-Brown Date: Wed, 6 Nov 2024 09:21:19 -0800 Subject: [PATCH] Fix tests --- expr_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/expr_test.go b/expr_test.go index 730376f..374e6fd 100644 --- a/expr_test.go +++ b/expr_test.go @@ -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())