Call NotifyFailedServers to rotate the server list
This commit is contained in:
parent
6a987062b9
commit
7d26f7bfa7
|
@ -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