@@ -589,9 +589,7 @@ func TestRunCommand_Run(t *testing.T) {
589589 command : []string {"echo" , "test" },
590590 io : ui .NewFakeIO (),
591591 environment : & environment {
592- osEnv : func () []string {
593- return []string {"TEST=secrethub://nonexistent/secret/path" }
594- },
592+ osEnv : []string {"TEST=secrethub://nonexistent/secret/path" },
595593 osStat : osStatNotExist ,
596594 },
597595 newClient : func () (secrethub.ClientInterface , error ) {
@@ -614,9 +612,7 @@ func TestRunCommand_Run(t *testing.T) {
614612 command : []string {"echo" , "test" },
615613 io : ui .NewFakeIO (),
616614 environment : & environment {
617- osEnv : func () []string {
618- return []string {"TEST=secrethub://nonexistent/secret/path" }
619- },
615+ osEnv : []string {"TEST=secrethub://nonexistent/secret/path" },
620616 osStat : osStatNotExist ,
621617 },
622618 newClient : func () (secrethub.ClientInterface , error ) {
@@ -776,9 +772,7 @@ func TestRunCommand_environment(t *testing.T) {
776772 readFile : readFileFunc ("secrethub.env" , "TEST=aaa" ),
777773 dontPromptMissingTemplateVar : true ,
778774 templateVersion : "2" ,
779- osEnv : func () []string {
780- return []string {"TEST=secrethub://test/test/test" }
781- },
775+ osEnv : []string {"TEST=secrethub://test/test/test" },
782776 },
783777 newClient : func () (secrethub.ClientInterface , error ) {
784778 return fakeclient.Client {
@@ -891,9 +885,7 @@ func TestRunCommand_environment(t *testing.T) {
891885 readFile : readFileFunc ("secrethub.env" , "TEST = {{ test/$variable/test }}" ),
892886 dontPromptMissingTemplateVar : true ,
893887 templateVersion : "2" ,
894- osEnv : func () []string {
895- return []string {"SECRETHUB_VAR_VARIABLE=test" }
896- },
888+ osEnv : []string {"SECRETHUB_VAR_VARIABLE=test" },
897889 },
898890 newClient : func () (secrethub.ClientInterface , error ) {
899891 return fakeclient.Client {
0 commit comments