Skip to content

Commit

Permalink
Add timeout for complex import test.
Browse files Browse the repository at this point in the history
The default timeout is too low for this test.
  • Loading branch information
mitchell-as committed Sep 3, 2024
1 parent 85b4b5c commit 590c0ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/integration/import_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import (
"path/filepath"
"strings"
"testing"
"time"

"github.com/ActiveState/termtest"

"github.com/ActiveState/cli/internal/constants"
"github.com/ActiveState/cli/internal/testhelpers/e2e"
Expand Down Expand Up @@ -122,7 +125,7 @@ func (suite *ImportIntegrationTestSuite) TestImport() {
cp.ExpectExitCode(0)

cp = ts.Spawn("import", "requirements.txt")
cp.ExpectExitCode(0)
cp.ExpectExitCode(0, termtest.OptExpectTimeout(20*time.Second))

cp = ts.Spawn("packages")
cp.Expect("coverage")
Expand Down

0 comments on commit 590c0ad

Please sign in to comment.