Fix a data race with rollbackPeriod. (#17387)

This commit is contained in:
Nick Cabatoff
2022-10-13 09:59:07 -04:00
committed by GitHub
parent 4b0d203a34
commit dc8e703481
6 changed files with 21 additions and 39 deletions

View File

@@ -905,11 +905,13 @@ func TestAutoRebuild(t *testing.T) {
},
// See notes below about usage of /sys/raw for reading cluster
// storage without barrier encryption.
EnableRaw: true,
EnableRaw: true,
RollbackPeriod: newPeriod,
}
cluster := vault.CreateTestClusterWithRollbackPeriod(t, newPeriod, coreConfig, &vault.TestClusterOptions{
cluster := vault.NewTestCluster(t, coreConfig, &vault.TestClusterOptions{
HandlerFunc: vaulthttp.Handler,
})
cluster.Start()
defer cluster.Cleanup()
client := cluster.Cores[0].Client