Fix another changed test for json

This commit is contained in:
2025-03-25 19:16:09 +01:00
parent 4eed05c7c2
commit 872f2dd46d

View File

@@ -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{}{ data := map[string]interface{}{
"name": "John", "name": "John",
} }
err := Set(data, "$", "Jane") err := Set(data, "$", "Jane")
if err == nil { if err != nil {
t.Errorf("Set() returned no error, expected error for setting on root") t.Errorf("Set() returned error: %v", err)
return return
} }