From 8737683d8fd39e941d16e44e27752ca47c83ea23 Mon Sep 17 00:00:00 2001 From: mitchell Date: Mon, 21 Oct 2024 11:39:08 -0400 Subject: [PATCH] Fixed failing integration test. --- test/integration/manifest_int_test.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/integration/manifest_int_test.go b/test/integration/manifest_int_test.go index 1928c6986c..c567d83ae6 100644 --- a/test/integration/manifest_int_test.go +++ b/test/integration/manifest_int_test.go @@ -79,16 +79,17 @@ func (suite *ManifestIntegrationTestSuite) TestManifest_Advanced_Reqs() { cp := ts.Spawn("config", "set", constants.OptinBuildscriptsConfig, "true") cp.ExpectExitCode(0) - ts.PrepareProject("ActiveState-CLI-Testing/Python-With-Custom-Reqs", "92ac7df2-0b0c-42f5-9b25-75b0cb4063f7") + ts.PrepareActiveStateYAML(`project: https://platform.activestate.com/ActiveState-CLI-Testing/Python-With-Custom-Reqs?branch=main&commitID=92ac7df2-0b0c-42f5-9b25-75b0cb4063f7 +config_version: 1`) // need config_version to be 1 or more so the migrator does not wipe out our build script bsf := filepath.Join(ts.Dirs.Work, constants.BuildScriptFileName) - fileutils.WriteFile(bsf, []byte(fmt.Sprintf( + err := fileutils.WriteFile(bsf, []byte(fmt.Sprintf( "```\n"+ - "Project: ActiveState-CLI-Testing/Python-With-Custom-Reqs\n"+ + "Project: https://platform.activestate.com/ActiveState-CLI-Testing/Python-With-Custom-Reqs?branch=main&commitID=92ac7df2-0b0c-42f5-9b25-75b0cb4063f7\n"+ "Time: 2022-07-07T19:51:01.140Z\n"+ "```\n"+` runtime = state_tool_artifacts_v1(src = sources) sources = solve( - at_time = at_time, + at_time = TIME, requirements = [ Req(name = "python", namespace = "language", version = Eq(value = "3.9.13")), Revision(name = "IngWithRevision", revision_id = "%s"), @@ -97,6 +98,7 @@ sources = solve( ) main = runtime `, e2e.CommitIDNotChecked))) + suite.Require().NoError(err) cp = ts.SpawnWithOpts( e2e.OptArgs("manifest"),