From 33b2fdaa57eade0d7cd351cf2354595ce13799c1 Mon Sep 17 00:00:00 2001 From: Kyle Schochenmaier Date: Mon, 22 Mar 2021 15:12:16 -0500 Subject: [PATCH] add wait to test to prevent race on acl read (#460) --- namespaces/namespaces_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/namespaces/namespaces_test.go b/namespaces/namespaces_test.go index 858946470d..4e0c25884e 100644 --- a/namespaces/namespaces_test.go +++ b/namespaces/namespaces_test.go @@ -37,6 +37,7 @@ func TestEnsureExists_AlreadyExists(tt *testing.T) { }) req.NoError(err) defer consul.Stop() + consul.WaitForSerfCheck(t) consulClient, err := capi.NewClient(&capi.Config{ Address: consul.HTTPAddr, Token: masterToken,