adding env var (#14958)

This commit is contained in:
akshya96
2022-04-07 12:15:05 -07:00
committed by GitHub
parent e7b5b2a48d
commit c22a584a40

View File

@@ -10,6 +10,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/hashicorp/vault/sdk/helper/consts"
"github.com/hashicorp/vault/vault/diagnose" "github.com/hashicorp/vault/vault/diagnose"
"github.com/mitchellh/cli" "github.com/mitchellh/cli"
) )
@@ -478,7 +479,7 @@ func TestOperatorDiagnoseCommand_Run(t *testing.T) {
t.Parallel() t.Parallel()
client, closer := testVaultServer(t) client, closer := testVaultServer(t)
defer closer() defer closer()
os.Setenv(consts.VaultDisableFilePermissionsCheckEnv, "true")
cmd := testOperatorDiagnoseCommand(t) cmd := testOperatorDiagnoseCommand(t)
cmd.client = client cmd.client = client