Skip to content

Commit e5bcd1f

Browse files
committed
Cleanup test for reusing env
1 parent ac9d3e2 commit e5bcd1f

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

test/integration/executor_int_test.go

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,12 @@ func (suite *ExecutorIntegrationTestSuite) TestExecutorBatArguments() {
124124
suite.Require().NoError(err)
125125
suite.Require().FileExists(targetExeFile)
126126

127-
cp := ts.SpawnCmdWithOpts(
128-
targetExeFile,
129-
e2e.OptArgs("a<b", "hello world"),
130-
131-
// Force override ACTIVESTATE_CI to false, because communicating with the svc will fail, and if this is true
132-
// the executor will interrupt.
133-
// For this test we don't care about the svc communication.
134-
e2e.OptAppendEnv("ACTIVESTATE_CI=false"),
135-
)
127+
// Force override ACTIVESTATE_CI to false, because communicating with the svc will fail, and if this is true
128+
// the executor will interrupt.
129+
// For this test we don't care about the svc communication.
130+
env := e2e.OptAppendEnv("ACTIVESTATE_CI=false")
131+
132+
cp := ts.SpawnCmdWithOpts(targetExeFile, e2e.OptArgs("a<b", "hello world"), env)
136133
cp.Expect(`"a<b" "hello world"`, termtest.OptExpectTimeout(5*time.Second))
137134
cp.ExpectExitCode(0)
138135
}

0 commit comments

Comments
 (0)