From febd816420492d78afc0b85010d61492765f99d8 Mon Sep 17 00:00:00 2001 From: mitchell Date: Tue, 3 Sep 2024 11:14:34 -0400 Subject: [PATCH] Add timeout for complex import test. The default timeout is too low for this test. --- test/integration/import_int_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/integration/import_int_test.go b/test/integration/import_int_test.go index b55fff639f..6a58e534cd 100644 --- a/test/integration/import_int_test.go +++ b/test/integration/import_int_test.go @@ -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" @@ -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(10*time.Second)) cp = ts.Spawn("packages") cp.Expect("coverage")