Skip to content

Commit

Permalink
t.setenv
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper committed Feb 17, 2025
1 parent 202ccc7 commit 90586fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/secret-vault/read_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package main

import (
"bytes"
"os"
"path/filepath"
"reflect"
"testing"
Expand Down Expand Up @@ -49,7 +48,7 @@ func TestVault_Read_Exec(t *testing.T) {
t.Errorf("Exec returned err: %v", err)
}

os.Setenv("VELA_MASKED_OUTPUTS", "/vela/outputs/masked.env")
t.Setenv("VELA_MASKED_OUTPUTS", "/vela/outputs/masked.env")

err = appFS.MkdirAll(filepath.Dir("/vela/outputs/masked.env"), 0777)
if err != nil {
Expand Down

0 comments on commit 90586fb

Please sign in to comment.