Skip to content

Commit

Permalink
Merge pull request #3471 from ActiveState/mitchell/dx-3026
Browse files Browse the repository at this point in the history
Add timeout for complex import test.
  • Loading branch information
mitchell-as authored Sep 3, 2024
2 parents 85b4b5c + eb6d562 commit 8ccf4db
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(30*time.Second))

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

0 comments on commit 8ccf4db

Please sign in to comment.