summaryrefslogtreecommitdiff
path: root/service/limit/config_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/limit/config_test.go')
-rw-r--r--service/limit/config_test.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/service/limit/config_test.go b/service/limit/config_test.go
index 72c4bde8..c79836b8 100644
--- a/service/limit/config_test.go
+++ b/service/limit/config_test.go
@@ -10,8 +10,11 @@ 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) Get(name string) service.Config { return nil }
+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{`{"enable: true}`}