Call NotifyFailedServers to rotate the server list

This commit is contained in:
Sean Chittenden 2016-03-28 14:12:41 -07:00
parent 6648d31579
commit 43aed6376a
1 changed files with 4 additions and 0 deletions

View File

@ -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 {