rpc: subscribe on reconnection (#689)

* rpc: subscribe on reconnection

* rpc: fix unit tests
This commit is contained in:
Alexandre Thibault
2017-09-29 11:31:39 +02:00
committed by Zach Ramsay
parent b61f5482d4
commit ce36a0111a
3 changed files with 17 additions and 2 deletions

View File

@ -186,6 +186,8 @@ func callWgDoneOnResult(t *testing.T, c *WSClient, wg *sync.WaitGroup) {
if err != nil {
t.Fatalf("unexpected error: %v", err)
}
case <-c.ReconnectCh:
t.Log("Reconnected")
case <-c.Quit:
return
}