database/test: use vault.TestWaitActive when we're starting up a test cluster (#10158)

This commit is contained in:
Calvin Leung Huang
2020-10-16 09:35:55 -07:00
committed by GitHub
parent dc23bd539d
commit 84626b95f3

View File

@@ -41,6 +41,7 @@ func getCluster(t *testing.T) (*vault.TestCluster, logical.SystemView) {
})
cluster.Start()
cores := cluster.Cores
vault.TestWaitActive(t, cores[0].Core)
os.Setenv(pluginutil.PluginCACertPEMEnv, cluster.CACertPEMFile)