mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 10:12:35 +00:00
fix race test (#26500)
This commit is contained in:
@@ -168,7 +168,7 @@ func TestAuditEnableCommand_Run(t *testing.T) {
|
||||
client, closer := testVaultServerAllBackends(t)
|
||||
defer closer()
|
||||
|
||||
for name := range auditBackends {
|
||||
for _, name := range []string{"file", "socket", "syslog"} {
|
||||
ui, cmd := testAuditEnableCommand(t)
|
||||
cmd.client = client
|
||||
|
||||
@@ -177,8 +177,7 @@ func TestAuditEnableCommand_Run(t *testing.T) {
|
||||
case "file":
|
||||
args = append(args, "file_path=discard")
|
||||
case "socket":
|
||||
args = append(args, "address=127.0.0.1:8888",
|
||||
"skip_test=true")
|
||||
args = append(args, "address=127.0.0.1:8888", "skip_test=true")
|
||||
case "syslog":
|
||||
if _, exists := os.LookupEnv("WSLENV"); exists {
|
||||
t.Log("skipping syslog test on WSL")
|
||||
|
||||
Reference in New Issue
Block a user