From e8bed180bda10241cb83a88f3cb59bde5b132ffa Mon Sep 17 00:00:00 2001 From: Eric Chlebek Date: Wed, 22 Nov 2017 17:19:22 -0800 Subject: [PATCH] Fix complex query benchmark. Refs #586 --- types/dynamic/dynamic_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/dynamic/dynamic_test.go b/types/dynamic/dynamic_test.go index b7a53532f3..e4d5d6cff5 100644 --- a/types/dynamic/dynamic_test.go +++ b/types/dynamic/dynamic_test.go @@ -267,7 +267,7 @@ func BenchmarkQueryGovaluateComplex(b *testing.B) { attrs: Attributes{data: []byte(`{"hello":{"foo":5,"bar":6.0}}`)}, } - expr, err := govaluate.NewEvaluableExpression("hello.Foo == 5") + expr, err := govaluate.NewEvaluableExpression("hello.foo < hello.bar") require.NoError(b, err) require.NotNil(b, expr) b.ResetTimer()