From 872f2dd46dd5d0b8cfd57031727a0eb460f63f0f Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Tue, 25 Mar 2025 19:16:09 +0100 Subject: [PATCH] Fix another changed test for json --- processor/jsonpath/jsonpath_get_set_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/processor/jsonpath/jsonpath_get_set_test.go b/processor/jsonpath/jsonpath_get_set_test.go index d1f7c2e..94fa707 100644 --- a/processor/jsonpath/jsonpath_get_set_test.go +++ b/processor/jsonpath/jsonpath_get_set_test.go @@ -355,14 +355,14 @@ func TestSet(t *testing.T) { } }) - t.Run("setting on root should fail", func(t *testing.T) { + t.Run("setting on root should not fail (anymore)", func(t *testing.T) { data := map[string]interface{}{ "name": "John", } err := Set(data, "$", "Jane") - if err == nil { - t.Errorf("Set() returned no error, expected error for setting on root") + if err != nil { + t.Errorf("Set() returned error: %v", err) return }