diff options
author | Valery Piashchynski <[email protected]> | 2020-03-21 01:03:13 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-03-21 01:03:13 +0300 |
commit | 314b161695daae7dfa8739afb1865a3be5ff53ca (patch) | |
tree | c1342d6c7a1f9ab0f786c2a4572ac0d0e2b818df /service/http/service_test.go | |
parent | 96e6686c5fa55e5b055fe3d7a4635e272e69c3ac (diff) |
Update GHA, go1.14 vendored mode
Update Makefile, add go vendor (go 1.14 + php hack)
Update usage of new json package
Diffstat (limited to 'service/http/service_test.go')
-rw-r--r-- | service/http/service_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/service/http/service_test.go b/service/http/service_test.go index 44aba576..53dbb3df 100644 --- a/service/http/service_test.go +++ b/service/http/service_test.go @@ -43,7 +43,8 @@ func (cfg *testCfg) Get(name string) service.Config { return nil } func (cfg *testCfg) Unmarshal(out interface{}) error { - return json.Unmarshal([]byte(cfg.target), out) + j := json.ConfigCompatibleWithStandardLibrary + return j.Unmarshal([]byte(cfg.target), out) } func Test_Service_NoConfig(t *testing.T) { @@ -554,7 +555,8 @@ func Test_Service_Error4(t *testing.T) { func tmpDir() string { p := os.TempDir() - r, _ := json.Marshal(p) + j := json.ConfigCompatibleWithStandardLibrary + r, _ := j.Marshal(p) return string(r) } |