mirror of https://github.com/status-im/consul.git
Call NotifyFailedServers to rotate the server list
This commit is contained in:
parent
6648d31579
commit
43aed6376a
|
@ -292,6 +292,10 @@ func TestClient_RPC_ConsulServerPing(t *testing.T) {
|
|||
t.Errorf("Unable to ping server %v: %s", s.String(), err)
|
||||
}
|
||||
pingCount += 1
|
||||
|
||||
// Artificially fail the server in order to rotate the server
|
||||
// list
|
||||
sm.NotifyFailedServer(s)
|
||||
}
|
||||
|
||||
if pingCount != numServers {
|
||||
|
|
Loading…
Reference in New Issue