mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-15 14:21:22 +00:00
backlog must always have higher priority
This commit is contained in:
@ -138,7 +138,10 @@ func TestWSClientReconnectFailure(t *testing.T) {
|
||||
s.Close()
|
||||
|
||||
// results in WS write error
|
||||
call(t, "a", c)
|
||||
// provide timeout to avoid blocking
|
||||
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
|
||||
defer cancel()
|
||||
c.Call(ctx, "a", make(map[string]interface{}))
|
||||
|
||||
// expect to reconnect almost immediately
|
||||
time.Sleep(10 * time.Millisecond)
|
||||
|
Reference in New Issue
Block a user