diff --git a/pkg/ottl/ottlfuncs/func_string_test.go b/pkg/ottl/ottlfuncs/func_string_test.go index a62598159400..3bd2d1b71bcc 100644 --- a/pkg/ottl/ottlfuncs/func_string_test.go +++ b/pkg/ottl/ottlfuncs/func_string_test.go @@ -71,8 +71,8 @@ func Test_String(t *testing.T) { }, { name: "map", - value: map[int]bool{1: true, 2: false}, - expected: string("{\"1\":true,\"2\":false}"), + value: map[int]bool{1: true}, + expected: string("{\"1\":true}"), }, { name: "slice",