From a2eb3c204d55698609045fdd3a45acc17423fb89 Mon Sep 17 00:00:00 2001 From: Alvin Huang Date: Fri, 22 Feb 2019 10:38:39 -0500 Subject: [PATCH] add serf check to TestAPI_HealthChecks_NodeMetaFilter, TestAPI_HealthConnect --- api/health_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/health_test.go b/api/health_test.go index 9b25b0f3c6..e083e5e46c 100644 --- a/api/health_test.go +++ b/api/health_test.go @@ -230,6 +230,8 @@ func TestAPI_HealthChecks_NodeMetaFilter(t *testing.T) { agent := c.Agent() health := c.Health() + s.WaitForSerfCheck(t) + // Make a service with a check reg := &AgentServiceRegistration{ Name: "foo", @@ -393,6 +395,8 @@ func TestAPI_HealthConnect(t *testing.T) { agent := c.Agent() health := c.Health() + s.WaitForSerfCheck(t) + // Make a service with a proxy reg := &AgentServiceRegistration{ Name: "foo",