|
@ -14,13 +14,14 @@ func TestStream(t *testing.T) { |
|
|
numAppendTxs := 200000 |
|
|
numAppendTxs := 200000 |
|
|
|
|
|
|
|
|
// Start the listener
|
|
|
// Start the listener
|
|
|
_, err := server.NewServer("tcp://127.0.0.1:46658", NewDummyApplication()) |
|
|
|
|
|
|
|
|
server, err := server.NewServer("unix://test.sock", NewDummyApplication()) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
Exit(err.Error()) |
|
|
Exit(err.Error()) |
|
|
} |
|
|
} |
|
|
|
|
|
defer server.Stop() |
|
|
|
|
|
|
|
|
// Connect to the socket
|
|
|
// Connect to the socket
|
|
|
conn, err := Connect("tcp://127.0.0.1:46658") |
|
|
|
|
|
|
|
|
conn, err := Connect("unix://test.sock") |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
Exit(err.Error()) |
|
|
Exit(err.Error()) |
|
|
} |
|
|
} |
|
|