summaryrefslogtreecommitdiff
path: root/service/static/config_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/static/config_test.go')
-rw-r--r--service/static/config_test.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/service/static/config_test.go b/service/static/config_test.go
index 710f9c42..442d87f9 100644
--- a/service/static/config_test.go
+++ b/service/static/config_test.go
@@ -9,8 +9,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(t *testing.T) {
cfg := &mockCfg{`{"dir": "./"}`}