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:
Nick Cabatoff
2023-09-20 11:18:59 -04:00
committed by GitHub
parent 7d21e1b827
commit cb993931b3

View File

@@ -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