summaryrefslogtreecommitdiff
path: root/service/http/rpc_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-03-21 01:03:13 +0300
committerValery Piashchynski <[email protected]>2020-03-21 01:03:13 +0300
commit314b161695daae7dfa8739afb1865a3be5ff53ca (patch)
treec1342d6c7a1f9ab0f786c2a4572ac0d0e2b818df /service/http/rpc_test.go
parent96e6686c5fa55e5b055fe3d7a4635e272e69c3ac (diff)
Update GHA, go1.14 vendored mode
Update Makefile, add go vendor (go 1.14 + php hack) Update usage of new json package
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",