From 43aed6376ab21d5207bc2a60b1987d06d43ea8c7 Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Mon, 28 Mar 2016 14:12:41 -0700 Subject: [PATCH] Call NotifyFailedServers to rotate the server list --- consul/client_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/consul/client_test.go b/consul/client_test.go index 102ea53737..c8524a46a1 100644 --- a/consul/client_test.go +++ b/consul/client_test.go @@ -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 {