Wait for s2 global-management policy

This commit is contained in:
freddygv 2019-05-21 17:58:37 -06:00
parent 66b3f3a465
commit d133d565a5
1 changed files with 7 additions and 0 deletions

View File

@ -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++ {