Skip to content

Commit

Permalink
Drop custom timeouts where not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Naatan committed Sep 5, 2023
1 parent aea2f04 commit 6a22271
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/integration/shell_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (suite *ShellIntegrationTestSuite) TestShell() {
cp := ts.SpawnWithOpts(
e2e.OptArgs("shell", arg),
)
cp.Expect("Activated", termtest.OptExpectTimeout(90*time.Second))
cp.Expect("Activated")
cp.ExpectInput()

cp.SendLine("python3 --version")
Expand Down Expand Up @@ -93,13 +93,13 @@ func (suite *ShellIntegrationTestSuite) TestDefaultShell() {
e2e.OptArgs("use", "ActiveState-CLI/small-python"),
e2e.OptAppendEnv("ACTIVESTATE_CLI_DISABLE_RUNTIME=false"),
)
cp.Expect("Switched to project")
cp.Expect("Switched to project", termtest.OptExpectTimeout(90*time.Second))
cp.ExpectExitCode(0)

cp = ts.SpawnWithOpts(
e2e.OptArgs("shell"),
)
cp.Expect("Activated", termtest.OptExpectTimeout(90*time.Second))
cp.Expect("Activated")
cp.ExpectInput()
cp.SendLine("exit")
cp.ExpectExitCode(0)
Expand All @@ -114,7 +114,7 @@ func (suite *ShellIntegrationTestSuite) TestCwdShell() {
cp := ts.SpawnWithOpts(
e2e.OptArgs("activate", "ActiveState-CLI/small-python"),
)
cp.Expect("Activated", termtest.OptExpectTimeout(90*time.Second))
cp.Expect("Activated")
cp.ExpectInput()
cp.SendLine("exit")
cp.ExpectExitCode(0)
Expand All @@ -123,7 +123,7 @@ func (suite *ShellIntegrationTestSuite) TestCwdShell() {
e2e.OptArgs("shell"),
e2e.OptWD(filepath.Join(ts.Dirs.Work, "small-python")),
)
cp.Expect("Activated", termtest.OptExpectTimeout(90*time.Second))
cp.Expect("Activated")
cp.ExpectInput()
cp.SendLine("exit")
cp.ExpectExitCode(0)
Expand All @@ -138,7 +138,7 @@ func (suite *ShellIntegrationTestSuite) TestCd() {
cp := ts.SpawnWithOpts(
e2e.OptArgs("activate", "ActiveState-CLI/small-python"),
)
cp.Expect("Activated", termtest.OptExpectTimeout(90*time.Second))
cp.Expect("Activated")
cp.ExpectInput()
cp.SendLine("exit")
cp.ExpectExitCode(0)
Expand All @@ -151,7 +151,7 @@ func (suite *ShellIntegrationTestSuite) TestCd() {
e2e.OptArgs("shell", "ActiveState-CLI/small-python"),
e2e.OptWD(subdir),
)
cp.Expect("Activated", termtest.OptExpectTimeout(90*time.Second))
cp.Expect("Activated")
cp.ExpectInput()
if runtime.GOOS != "windows" {
cp.SendLine("pwd")
Expand All @@ -165,7 +165,7 @@ func (suite *ShellIntegrationTestSuite) TestCd() {
e2e.OptArgs("shell", "ActiveState-CLI/small-python", "--cd"),
e2e.OptWD(subdir),
)
cp.Expect("Activated", termtest.OptExpectTimeout(90*time.Second))
cp.Expect("Activated")
cp.ExpectInput()
if runtime.GOOS != "windows" {
cp.SendLine("ls")
Expand Down

0 comments on commit 6a22271

Please sign in to comment.