Browse Source

Fix the TestLeader_SecondaryCA_IntermediateRefresh test flakiness

pull/6885/head
Matt Keeler 5 years ago
parent
commit
71b1c9cc3c
No known key found for this signature in database
GPG Key ID: 4DBAE1857E0081B
  1. 6
      agent/consul/leader_connect_test.go

6
agent/consul/leader_connect_test.go

@ -237,6 +237,9 @@ func TestLeader_SecondaryCA_IntermediateRefresh(t *testing.T) {
updatedRoot = activeRoot
}
testrpc.WaitForActiveCARoot(t, s1.RPC, "dc1", updatedRoot)
testrpc.WaitForActiveCARoot(t, s2.RPC, "dc2", updatedRoot)
// Wait for dc2's intermediate to be refreshed.
var intermediatePEM string
retry.Run(t, func(r *retry.R) {
@ -248,9 +251,6 @@ func TestLeader_SecondaryCA_IntermediateRefresh(t *testing.T) {
})
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.
state1 := s1.fsm.State()
_, primaryRoot, err := state1.CARootActive(nil)

Loading…
Cancel
Save