Skip to content

Commit

Permalink
Fix package int tests should address new user facing error
Browse files Browse the repository at this point in the history
  • Loading branch information
Naatan committed Oct 18, 2023
1 parent 96be607 commit 89ee49b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/integration/package_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@ func (suite *PackageIntegrationTestSuite) TestInstall_InvalidVersion() {
e2e.OptArgs("install", "[email protected]"),
e2e.OptAppendEnv(constants.DisableRuntime+"=false"),
)
cp.Expect("Error occurred while trying to create a commit")
// User facing error from build planner
// We only assert the state tool curated part of the error as the underlying build planner error may change
cp.Expect("Could not plan build")
cp.ExpectExitCode(1)
}

Expand All @@ -607,7 +609,9 @@ func (suite *PackageIntegrationTestSuite) TestUpdate_InvalidVersion() {
e2e.OptArgs("install", "[email protected]"), // update
e2e.OptAppendEnv(constants.DisableRuntime+"=false"), // We DO want to test the runtime part, just not for every step
)
cp.Expect("Error occurred while trying to create a commit")
// User facing error from build planner
// We only assert the state tool curated part of the error as the underlying build planner error may change
cp.Expect("Could not plan build")
cp.ExpectExitCode(1)
}

Expand Down

0 comments on commit 89ee49b

Please sign in to comment.