diff options
Diffstat (limited to 'service/headers/config_test.go')
-rw-r--r-- | service/headers/config_test.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/service/headers/config_test.go b/service/headers/config_test.go index e6b9b8ff..6ea02f67 100644 --- a/service/headers/config_test.go +++ b/service/headers/config_test.go @@ -1,7 +1,7 @@ package headers import ( - "encoding/json" + json "github.com/json-iterator/go" "github.com/spiral/roadrunner/service" "github.com/stretchr/testify/assert" "testing" @@ -10,7 +10,10 @@ import ( type mockCfg struct{ cfg string } func (cfg *mockCfg) Get(name string) service.Config { return nil } -func (cfg *mockCfg) Unmarshal(out interface{}) error { return json.Unmarshal([]byte(cfg.cfg), out) } +func (cfg *mockCfg) Unmarshal(out interface{}) error { + j := json.ConfigCompatibleWithStandardLibrary + return j.Unmarshal([]byte(cfg.cfg), out) +} func Test_Config_Hydrate_Error1(t *testing.T) { cfg := &mockCfg{`{"request": {"From": "Something"}}`} |