diff options
Diffstat (limited to 'plugins/rpc/config_test.go')
-rwxr-xr-x | plugins/rpc/config_test.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/rpc/config_test.go b/plugins/rpc/config_test.go index 36927dd2..8b1d974a 100755 --- a/plugins/rpc/config_test.go +++ b/plugins/rpc/config_test.go @@ -3,15 +3,16 @@ package rpc import ( "testing" - json "github.com/json-iterator/go" + j "github.com/json-iterator/go" "github.com/stretchr/testify/assert" ) +var json = j.ConfigCompatibleWithStandardLibrary + type testCfg struct{ cfg string } func (cfg *testCfg) Unmarshal(out interface{}) error { - j := json.ConfigCompatibleWithStandardLibrary - return j.Unmarshal([]byte(cfg.cfg), out) + return json.Unmarshal([]byte(cfg.cfg), out) } func TestConfig_Listener(t *testing.T) { |