Skip to content

Commit

Permalink
Fix timestamp when asserting package versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchell-as committed Oct 25, 2024
1 parent 8158813 commit 3fbb74c
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]")
ts := "--ts=2024-08-15T20:07:00.000Z"

Check failure on line 659 in test/integration/package_int_test.go

View workflow job for this annotation

GitHub Actions / ubuntu-latest

no new variables on left side of :=

Check failure on line 659 in test/integration/package_int_test.go

View workflow job for this annotation

GitHub Actions / ubuntu-latest

cannot use "--ts=2024-08-15T20:07:00.000Z" (untyped string constant) as *e2e.Session value in assignment

Check failure on line 659 in test/integration/package_int_test.go

View workflow job for this annotation

GitHub Actions / macos-12

no new variables on left side of :=

Check failure on line 659 in test/integration/package_int_test.go

View workflow job for this annotation

GitHub Actions / macos-12

cannot use "--ts=2024-08-15T20:07:00.000Z" (untyped string constant) as *e2e.Session value in assignment

cp = ts.Spawn("install", "[email protected]", ts)

Check failure on line 661 in test/integration/package_int_test.go

View workflow job for this annotation

GitHub Actions / ubuntu-latest

cannot use ts (variable of type *e2e.Session) as string value in argument to ts.Spawn

Check failure on line 661 in test/integration/package_int_test.go

View workflow job for this annotation

GitHub Actions / macos-12

cannot use ts (variable of type *e2e.Session) as string value in argument to ts.Spawn
cp.Expect("Added: language/python/jinja2")
cp.ExpectExitCode(0)

cp = ts.Spawn("install", "[email protected]")
cp = ts.Spawn("install", "[email protected]", ts)

Check failure on line 665 in test/integration/package_int_test.go

View workflow job for this annotation

GitHub Actions / ubuntu-latest

cannot use ts (variable of type *e2e.Session) as string value in argument to ts.Spawn

Check failure on line 665 in test/integration/package_int_test.go

View workflow job for this annotation

GitHub Actions / macos-12

cannot use ts (variable of type *e2e.Session) as string value in argument to ts.Spawn
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 3fbb74c

Please sign in to comment.