Skip to content

Commit

Permalink
Merge pull request #3556 from ActiveState/mitchell/dx-3128
Browse files Browse the repository at this point in the history
Use fixed timestamp when asserting package versions.
  • Loading branch information
mitchell-as authored Oct 25, 2024
2 parents 8158813 + 6c1610f commit 64c0d72
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/integration/package_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -656,13 +656,15 @@ func (suite *PackageIntegrationTestSuite) TestChangeSummaryShowsAddedForUpdate()

ts.PrepareProject("ActiveState-CLI/small-python", "5a1e49e5-8ceb-4a09-b605-ed334474855b")

cp = ts.Spawn("install", "[email protected]")
timestamp := "--ts=2024-08-15T20:07:00.000Z"

cp = ts.Spawn("install", "[email protected]", timestamp)
cp.Expect("Added: language/python/jinja2")
cp.ExpectExitCode(0)

cp = ts.Spawn("install", "[email protected]")
cp = ts.Spawn("install", "[email protected]", timestamp)
cp.Expect("Installing [email protected] includes 1 direct dep")
cp.Expect("└─ markupsafe@3.0.1")
cp.Expect("└─ markupsafe@2.1.5")
cp.Expect("Updated: language/python/jinja2")
cp.ExpectExitCode(0)
}
Expand Down

0 comments on commit 64c0d72

Please sign in to comment.