From d133d565a545e130b61651cf8c3dc341ba1fc1c8 Mon Sep 17 00:00:00 2001 From: freddygv Date: Tue, 21 May 2019 17:58:37 -0600 Subject: [PATCH] Wait for s2 global-management policy --- agent/consul/acl_replication_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/agent/consul/acl_replication_test.go b/agent/consul/acl_replication_test.go index 44be6e0b4..53842b37d 100644 --- a/agent/consul/acl_replication_test.go +++ b/agent/consul/acl_replication_test.go @@ -376,6 +376,13 @@ func TestACLReplication_Tokens(t *testing.T) { checkSame(r) }) + // Wait for s2 global-management policy + retry.Run(t, func(r *retry.R) { + _, policy, err := s2.fsm.State().ACLPolicyGetByID(nil, structs.ACLPolicyGlobalManagementID) + require.NoError(r, err) + require.NotNil(t, policy) + }) + // add some local tokens to the secondary DC // these shouldn't be deleted by replication for i := 0; i < 50; i++ {