From b92294ed13ef6b2f0995729cf40ab67743179fd6 Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Thu, 13 Mar 2025 12:43:07 +0300 Subject: [PATCH] fix tests --- core/util/testutil/map_extract_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/util/testutil/map_extract_test.go b/core/util/testutil/map_extract_test.go index 913449e..a902bef 100644 --- a/core/util/testutil/map_extract_test.go +++ b/core/util/testutil/map_extract_test.go @@ -78,11 +78,11 @@ func TestMapValue_Nested(t *testing.T) { func TestMapValue_ErrorNotAMap(t *testing.T) { _, err := MapValue(1, "key") require.Error(t, err) - assert.Equal(t, "value at path '' is not a map", err.Error()) + assert.Equal(t, "value at path '' is not a map, slice or array", err.Error()) _, err = MapValue(map[string]int{"key": 1}, "key.key2") require.Error(t, err) - assert.Equal(t, "value at path 'key' is not a map", err.Error()) + assert.Equal(t, "value at path 'key' is not a map, slice or array", err.Error()) } func TestMapValue_ErrorKeyNotFound(t *testing.T) {