mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
Fix the TestLeader_SecondaryCA_IntermediateRefresh test flakine… (#6885)
Fix the TestLeader_SecondaryCA_IntermediateRefresh test flakiness
This commit is contained in:
commit
c05ab15485
@ -237,6 +237,9 @@ func TestLeader_SecondaryCA_IntermediateRefresh(t *testing.T) {
|
|||||||
updatedRoot = activeRoot
|
updatedRoot = activeRoot
|
||||||
}
|
}
|
||||||
|
|
||||||
|
testrpc.WaitForActiveCARoot(t, s1.RPC, "dc1", updatedRoot)
|
||||||
|
testrpc.WaitForActiveCARoot(t, s2.RPC, "dc2", updatedRoot)
|
||||||
|
|
||||||
// Wait for dc2's intermediate to be refreshed.
|
// Wait for dc2's intermediate to be refreshed.
|
||||||
var intermediatePEM string
|
var intermediatePEM string
|
||||||
retry.Run(t, func(r *retry.R) {
|
retry.Run(t, func(r *retry.R) {
|
||||||
@ -248,9 +251,6 @@ func TestLeader_SecondaryCA_IntermediateRefresh(t *testing.T) {
|
|||||||
})
|
})
|
||||||
require.NoError(err)
|
require.NoError(err)
|
||||||
|
|
||||||
testrpc.WaitForActiveCARoot(t, s1.RPC, "dc1", updatedRoot)
|
|
||||||
testrpc.WaitForActiveCARoot(t, s2.RPC, "dc2", updatedRoot)
|
|
||||||
|
|
||||||
// Verify the root lists have been rotated in each DC's state store.
|
// Verify the root lists have been rotated in each DC's state store.
|
||||||
state1 := s1.fsm.State()
|
state1 := s1.fsm.State()
|
||||||
_, primaryRoot, err := state1.CARootActive(nil)
|
_, primaryRoot, err := state1.CARootActive(nil)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user