Skip to content

Commit f1627c9

Browse files
committed
Fix some integration tests
1 parent b215dc9 commit f1627c9

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

test/integration/buildscript_int_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func (suite *BuildScriptIntegrationTestSuite) TestBuildScriptRequirementVersionA
179179
cp.ExpectExitCode(0)
180180

181181
cp = ts.Spawn("install", "dotenv")
182-
cp.Expect("Added: language/python/dotenv@Auto")
182+
cp.Expect("Added: language/python/dotenv@Auto", termtest.OptExpectTimeout(1*time.Minute))
183183
cp.ExpectExitCode(0)
184184
}
185185

test/integration/commit_int_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (suite *CommitIntegrationTestSuite) TestCommitAtTimeChange() {
7676
suite.Require().NoError(err) // verify validity
7777

7878
// Update top-level at_time variable.
79-
dateTime := "2023-06-21T12:34:56Z"
79+
dateTime := "2025-12-05T16:08:55.440Z"
8080
buildScriptFile := filepath.Join(proj.Dir(), constants.BuildScriptFileName)
8181
contents, err := fileutils.ReadFile(buildScriptFile)
8282
suite.Require().NoError(err)

test/integration/package_int_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ func (suite *PackageIntegrationTestSuite) TestChangeSummary() {
679679
cp.Expect("Successfully set")
680680
cp.ExpectExitCode(0)
681681

682-
ts.PrepareProject("ActiveState-CLI/small-python", "5a1e49e5-8ceb-4a09-b605-ed334474855b")
682+
ts.PrepareProject("ActiveState-CLI/ChangeSummary", "e2414800-3c35-4ed2-8938-5d36e954ce09")
683683

684684
cp = ts.Spawn("install", "[email protected]")
685685
cp.Expect("Resolving Dependencies")

test/integration/revert_int_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ func (suite *RevertIntegrationTestSuite) TestRevert() {
2424
defer ts.Close()
2525

2626
namespace := "ActiveState-CLI/Revert"
27-
ts.PrepareProject(namespace, "903bf49a-6719-47f0-ae70-450d69532ece")
27+
ts.PrepareProject(namespace, "c9444988-2761-4b39-8c4c-eb5fdaaa8dca")
2828

2929
// Revert the commit that added urllib3.
30-
commitID := "1f4f4f7d-7883-400e-b2ad-a5803c018ecd"
30+
commitID := "d105e865-d12f-4c42-a1a0-6767590d87da"
3131
cp := ts.Spawn("revert", commitID)
3232
cp.Expect(fmt.Sprintf("Operating on project %s", namespace))
3333
cp.Expect("You are about to revert the following commit:")
@@ -106,13 +106,13 @@ func (suite *RevertIntegrationTestSuite) TestRevertTo() {
106106
defer ts.Close()
107107

108108
namespace := "ActiveState-CLI/Revert"
109-
ts.PrepareProject(namespace, "903bf49a-6719-47f0-ae70-450d69532ece")
109+
ts.PrepareProject(namespace, "c9444988-2761-4b39-8c4c-eb5fdaaa8dca")
110110

111111
cp := ts.Spawn("config", "set", constants.AsyncRuntimeConfig, "true")
112112
cp.ExpectExitCode(0)
113113

114114
// Revert the commit that added urllib3.
115-
commitID := "1f4f4f7d-7883-400e-b2ad-a5803c018ecd"
115+
commitID := "d105e865-d12f-4c42-a1a0-6767590d87da"
116116
cp = ts.Spawn("revert", "--to", commitID)
117117
cp.Expect(fmt.Sprintf("Operating on project %s", namespace))
118118
cp.Expect("You are about to revert to the following commit:")
@@ -153,12 +153,12 @@ func (suite *RevertIntegrationTestSuite) TestJSON() {
153153
ts := e2e.New(suite.T(), false)
154154
defer ts.Close()
155155

156-
ts.PrepareProject("ActiveState-CLI/Revert", "903bf49a-6719-47f0-ae70-450d69532ece")
156+
ts.PrepareProject("ActiveState-CLI/Revert", "c9444988-2761-4b39-8c4c-eb5fdaaa8dca")
157157

158158
cp := ts.Spawn("config", "set", constants.AsyncRuntimeConfig, "true")
159159
cp.ExpectExitCode(0)
160160

161-
cp = ts.Spawn("revert", "--to", "1f4f4f7d-7883-400e-b2ad-a5803c018ecd", "-o", "json")
161+
cp = ts.Spawn("revert", "--to", "d105e865-d12f-4c42-a1a0-6767590d87da", "-o", "json")
162162
cp.Expect(`{"current_commit_id":`, e2e.RuntimeSourcingTimeoutOpt)
163163
cp.ExpectExitCode(0)
164164
AssertValidJSON(suite.T(), cp)

0 commit comments

Comments
 (0)