summaryrefslogtreecommitdiff
path: root/plugins/rpc/config_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/rpc/config_test.go')
-rwxr-xr-xplugins/rpc/config_test.go7
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) {