Ethan Buchman
4b30cb3083
test: check err on cmd.Wait
8 years ago
Anton Kaliaev
5d19a008ce
add Call method to WSClient, which does proper encoding of params
8 years ago
Anton Kaliaev
3233c9c003
WSClient failed to "echo_bytes"
Error:
```
Expected nil, but got: encoding/hex: invalid byte: U+0078 'x'
```
8 years ago
Anton Kaliaev
c88257b038
rename rpc function status to echo
echo means we're returning the input, which is exactly what this
function does.
8 years ago
Anton Kaliaev
0874c72819
refactor tests
8 years ago
Anton Kaliaev
d66ebbd904
use testify package
8 years ago
Anton Kaliaev
e6c083f589
rename ClientURI -> URIClient, ClientJSONRPC -> JSONRPCClient (Refs #4 )
8 years ago
Anton Kaliaev
ff90224ba8
fix "Expected map but got type string" error
Error from tendermint:
```
panic: Expected map but got type string [recovered]
panic: Expected map but got type string
goroutine 82 [running]:
testing.tRunner.func1(0xc420464000)
/usr/local/go/src/testing/testing.go:622 +0x29d
panic(0xa1fda0, 0xc4201eecd0)
/usr/local/go/src/runtime/panic.go:489 +0x2cf
github.com/tendermint/tendermint/rpc/test.waitForEvent(0xc420464000, 0xc420064000, 0xae6fae, 0x8, 0xae6f01, 0xc2e998, 0xc2e9a0)
/home/vagrant/go/src/github.com/tendermint/tendermint/rpc/test/helpers.go:179 +0x53a
github.com/tendermint/tendermint/rpc/test.TestWSNewBlock(0xc420464000)
/home/vagrant/go/src/github.com/tendermint/tendermint/rpc/test/client_test.go:190 +0x12e
testing.tRunner(0xc420464000, 0xc2e9a8)
/usr/local/go/src/testing/testing.go:657 +0x96
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:697 +0x2ca
```
8 years ago
Anton Kaliaev
720b74d89e
read from ErrorsCh also
8 years ago
Anton Kaliaev
05e1a22d5b
encode params before sending in JSONRPC
8 years ago
Anton Kaliaev
c128957723
"must remove file for test to run again" - no way I am doing this by hands, too lazy :)
8 years ago
Anton Kaliaev
66867bf949
remove "rpc" prefix from package imports
8 years ago
Anton Kaliaev
e1d5873bdf
support key-value params in JSONRPC (Refs #1 )
More changes:
- remove Client interface (reason: empty)
- introduce HTTPClient interface, which can be used for both ClientURI
and ClientJSONRPC clients (so our users don't have to create their own) (Refs #8 )
- rename integration tests script to `integration_test.sh`
- do not update deps on `get_deps`
8 years ago
Matt Bell
34a806578a
Handle hex strings and quoted strings in HTTP params
Use 0x-prefixed hex strings in client
server: Decode hex string args
Encode all string args as 0x<hex> without trying to encode as JSON
Added tests for special string arguments
Fix server handling quoted string args
Added string arg handling test cases to bash test script
8 years ago
Ethan Buchman
479510be0e
support full urls (with eg tcp:// prefix)
8 years ago
Ethan Buchman
7ea86f6506
fix test race and update readme
9 years ago
Ethan Buchman
1410693eae
support unix domain websockets
9 years ago
Ethan Buchman
6607232a5d
add support for unix sockets
9 years ago