tests: eliminate flakiness on TestRecovery (#7897)

This commit is contained in:
Calvin Leung Huang 2019-11-20 17:21:34 -08:00 committed by Chris Hoffman
parent ba38d6690a
commit afa9510835

View file

@ -124,9 +124,11 @@ func TestRecovery(t *testing.T) {
cluster := vault.NewTestCluster(t, &conf, &opts)
cluster.BarrierKeys = keys
cluster.Start()
testhelpers.EnsureCoresUnsealed(t, cluster)
defer cluster.Cleanup()
testhelpers.EnsureCoresUnsealed(t, cluster)
vault.TestWaitActive(t, cluster.Cores[0].Core)
client := cluster.Cores[0].Client
client.SetToken(rootToken)
secret, err := client.Logical().List("secret/")