Fix activity log test for enterprise (#22727)

This commit is contained in:
miagilepner 2023-09-01 14:06:14 +02:00 committed by GitHub
parent bd36e66ea6
commit 258dc91f09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,11 +30,11 @@ func Test_ActivityLog_LoseLeadership(t *testing.T) {
t.Parallel()
cluster := vault.NewTestCluster(t, nil, &vault.TestClusterOptions{
HandlerFunc: vaulthttp.Handler,
NumCores: 2,
})
cluster.Start()
defer cluster.Cleanup()
testhelpers.WaitForActiveNodeAndStandbys(t, cluster)
active := testhelpers.DeriveStableActiveCore(t, cluster)
client := active.Client
_, err := client.Logical().Write("sys/internal/counters/config", map[string]interface{}{