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 }