mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-26 23:32:15 +00:00
read from ErrorsCh also
This commit is contained in:
parent
05e1a22d5b
commit
720b74d89e
@ -140,7 +140,8 @@ func testWS(t *testing.T, cl *client.WSClient) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
msg := <-cl.ResultsCh
|
select {
|
||||||
|
case msg := <-cl.ResultsCh:
|
||||||
result := new(Result)
|
result := new(Result)
|
||||||
wire.ReadJSONPtr(result, msg, &err)
|
wire.ReadJSONPtr(result, msg, &err)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -150,6 +151,9 @@ func testWS(t *testing.T, cl *client.WSClient) {
|
|||||||
if got != val {
|
if got != val {
|
||||||
t.Fatalf("Got: %v .... Expected: %v \n", got, val)
|
t.Fatalf("Got: %v .... Expected: %v \n", got, val)
|
||||||
}
|
}
|
||||||
|
case err := <-cl.ErrorsCh:
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------
|
//-------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user