From 6c1610f67a061b3d8d479bb31e79763b5f5bbcbe Mon Sep 17 00:00:00 2001 From: mitchell Date: Fri, 25 Oct 2024 11:18:15 -0400 Subject: [PATCH] Use fixed timestamp when asserting package versions. --- test/integration/package_int_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/integration/package_int_test.go b/test/integration/package_int_test.go index b1941977a6..8ac91a19f2 100644 --- a/test/integration/package_int_test.go +++ b/test/integration/package_int_test.go @@ -656,13 +656,15 @@ func (suite *PackageIntegrationTestSuite) TestChangeSummaryShowsAddedForUpdate() ts.PrepareProject("ActiveState-CLI/small-python", "5a1e49e5-8ceb-4a09-b605-ed334474855b") - cp = ts.Spawn("install", "jinja2@2.0") + timestamp := "--ts=2024-08-15T20:07:00.000Z" + + cp = ts.Spawn("install", "jinja2@2.0", timestamp) cp.Expect("Added: language/python/jinja2") cp.ExpectExitCode(0) - cp = ts.Spawn("install", "jinja2@3.1.4") + cp = ts.Spawn("install", "jinja2@3.1.4", timestamp) cp.Expect("Installing jinja2@3.1.4 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) }