mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +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)
|
client, closer := testVaultServerAllBackends(t)
|
||||||
defer closer()
|
defer closer()
|
||||||
|
|
||||||
for name := range auditBackends {
|
for _, name := range []string{"file", "socket", "syslog"} {
|
||||||
ui, cmd := testAuditEnableCommand(t)
|
ui, cmd := testAuditEnableCommand(t)
|
||||||
cmd.client = client
|
cmd.client = client
|
||||||
|
|
||||||
@@ -177,8 +177,7 @@ func TestAuditEnableCommand_Run(t *testing.T) {
|
|||||||
case "file":
|
case "file":
|
||||||
args = append(args, "file_path=discard")
|
args = append(args, "file_path=discard")
|
||||||
case "socket":
|
case "socket":
|
||||||
args = append(args, "address=127.0.0.1:8888",
|
args = append(args, "address=127.0.0.1:8888", "skip_test=true")
|
||||||
"skip_test=true")
|
|
||||||
case "syslog":
|
case "syslog":
|
||||||
if _, exists := os.LookupEnv("WSLENV"); exists {
|
if _, exists := os.LookupEnv("WSLENV"); exists {
|
||||||
t.Log("skipping syslog test on WSL")
|
t.Log("skipping syslog test on WSL")
|
||||||
|
|||||||
Reference in New Issue
Block a user