From 6dee545326c6335e99a753c208ea88fe1971fafe Mon Sep 17 00:00:00 2001 From: Zane Dufour Date: Fri, 15 Nov 2024 18:50:38 -0700 Subject: [PATCH] fix: return [][]byte with basicSliceBytes --- pkg/ottl/expression_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/ottl/expression_test.go b/pkg/ottl/expression_test.go index 8dbb77a00a62..829e86201bc1 100644 --- a/pkg/ottl/expression_test.go +++ b/pkg/ottl/expression_test.go @@ -102,7 +102,9 @@ func basicSliceFloat() (ExprFunc[any], error) { func basicSliceBytes() (ExprFunc[any], error) { return func(_ context.Context, _ any) (any, error) { return []any{ - []byte("pass"), + [][]byte{ + []byte("pass"), + }, }, nil }, nil }