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) }) } }