rpc/lib: test tcp and unix

This commit is contained in:
Ethan Buchman 2017-06-24 21:27:16 -04:00
parent bdbefe334d
commit 5c29d7aba9
1 changed files with 2 additions and 2 deletions

View File

@ -245,11 +245,11 @@ func TestServersAndClientsBasic(t *testing.T) {
fmt.Printf("=== testing server on %s using %v client", addr, cl1)
testWithHTTPClient(t, cl1)
cl2 := client.NewJSONRPCClient(tcpAddr)
cl2 := client.NewJSONRPCClient(addr)
fmt.Printf("=== testing server on %s using %v client", addr, cl2)
testWithHTTPClient(t, cl2)
cl3 := client.NewWSClient(tcpAddr, websocketEndpoint)
cl3 := client.NewWSClient(addr, websocketEndpoint)
_, err := cl3.Start()
require.Nil(t, err)
fmt.Printf("=== testing server on %s using %v client", addr, cl3)