mirror of https://github.com/status-im/consul.git
Wait for s2 global-management policy
This commit is contained in:
parent
47a83cbe9f
commit
40b809bce3
|
@ -376,6 +376,13 @@ func TestACLReplication_Tokens(t *testing.T) {
|
||||||
checkSame(r)
|
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
|
// add some local tokens to the secondary DC
|
||||||
// these shouldn't be deleted by replication
|
// these shouldn't be deleted by replication
|
||||||
for i := 0; i < 50; i++ {
|
for i := 0; i < 50; i++ {
|
||||||
|
|
Loading…
Reference in New Issue