mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Fix data race, use local variable instead of global (#23188)
Co-authored-by: hc-github-team-secure-vault-core <github-team-secure-vault-core@hashicorp.com>
This commit is contained in:
@@ -86,7 +86,7 @@ func TestKVV2Get_RequestForwarding(t *testing.T) {
|
||||
}, &vault.TestClusterOptions{
|
||||
HandlerFunc: vaulthttp.Handler,
|
||||
})
|
||||
client = cluster.Cores[0].Client
|
||||
client := cluster.Cores[0].Client
|
||||
testhelpers.WaitForActiveNodeAndStandbys(t, cluster)
|
||||
standbys := testhelpers.DeriveStandbyCores(t, cluster)
|
||||
standby := standbys[0].Client
|
||||
|
||||
Reference in New Issue
Block a user