summaryrefslogtreecommitdiff
path: root/service/http/rpc_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/http/rpc_test.go')
-rw-r--r--service/http/rpc_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/service/http/rpc_test.go b/service/http/rpc_test.go
index 2874e8b0..9f56e2cd 100644
--- a/service/http/rpc_test.go
+++ b/service/http/rpc_test.go
@@ -93,10 +93,11 @@ func Test_RPC_Unix(t *testing.T) {
c.Register(ID, &Service{})
sock := `unix://` + os.TempDir() + `/rpc.unix`
- j, _ := json.Marshal(sock)
+ j := json.ConfigCompatibleWithStandardLibrary
+ data, _ := j.Marshal(sock)
assert.NoError(t, c.Init(&testCfg{
- rpcCfg: `{"enable":true, "listen":` + string(j) + `}`,
+ rpcCfg: `{"enable":true, "listen":` + string(data) + `}`,
httpCfg: `{
"enable": true,
"address": ":6032",