From 7397b4827d5f53fa8becc2d9893ea7ae0e00f734 Mon Sep 17 00:00:00 2001 From: Ruslan Kovalov Date: Sat, 6 Aug 2022 22:43:54 +0200 Subject: [PATCH] [tqlotel] Fix assertion in the limit function test. --- .../functions/tqlotel/func_limit_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/telemetryquerylanguage/functions/tqlotel/func_limit_test.go b/pkg/telemetryquerylanguage/functions/tqlotel/func_limit_test.go index 27dc8748b4ab..208d897e5ab4 100644 --- a/pkg/telemetryquerylanguage/functions/tqlotel/func_limit_test.go +++ b/pkg/telemetryquerylanguage/functions/tqlotel/func_limit_test.go @@ -97,11 +97,12 @@ func Test_limit(t *testing.T) { exprFunc, _ := Limit(tt.target, tt.limit) exprFunc(ctx) + actual := ctx.GetItem() expected := pcommon.NewMap() tt.want(expected) - assert.Equal(t, expected, expected) + assert.Equal(t, expected, actual) }) } }