From 8a16dcee18b5b44cfefa984eaafa841110076d78 Mon Sep 17 00:00:00 2001
From: Pierre Souchay
Date: Fri, 5 Oct 2018 21:51:04 +0200
Subject: [PATCH] Fixed unstable test TestCatalog_ListNodes_StaleRead()
---
agent/consul/catalog_endpoint_test.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/agent/consul/catalog_endpoint_test.go b/agent/consul/catalog_endpoint_test.go
index 8211d0a61438..7ec5b264ac34 100644
--- a/agent/consul/catalog_endpoint_test.go
+++ b/agent/consul/catalog_endpoint_test.go
@@ -907,8 +907,8 @@ func TestCatalog_ListNodes_StaleRead(t *testing.T) {
// Try to join
joinLAN(t, s2, s1)
- testrpc.WaitForLeader(t, s1.RPC, "dc1")
- testrpc.WaitForLeader(t, s2.RPC, "dc1")
+ testrpc.WaitForTestAgent(t, s1.RPC, "dc1")
+ testrpc.WaitForTestAgent(t, s2.RPC, "dc1")
// Use the follower as the client
var codec rpc.ClientCodec