summaryrefslogtreecommitdiff
path: root/service/limit/service_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/limit/service_test.go')
-rw-r--r--service/limit/service_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/service/limit/service_test.go b/service/limit/service_test.go
index abc03e69..5f6ff183 100644
--- a/service/limit/service_test.go
+++ b/service/limit/service_test.go
@@ -1,8 +1,8 @@
package limit
import (
- "encoding/json"
"fmt"
+ json "github.com/json-iterator/go"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus/hooks/test"
"github.com/spiral/roadrunner/service"
@@ -37,7 +37,8 @@ func (cfg *testCfg) Get(name string) service.Config {
}
func (cfg *testCfg) Unmarshal(out interface{}) error {
- err := json.Unmarshal([]byte(cfg.target), out)
+ j := json.ConfigCompatibleWithStandardLibrary
+ err := j.Unmarshal([]byte(cfg.target), out)
if cl, ok := out.(*Config); ok {
// to speed up tests