diff --git a/testing/integration/upgrade_test.go b/testing/integration/upgrade_test.go index 7d114af52b6..4c96ccf70be 100644 --- a/testing/integration/upgrade_test.go +++ b/testing/integration/upgrade_test.go @@ -952,7 +952,7 @@ func TestUpgradeBrokenPackageVersion(t *testing.T) { defer c.Disconnect() downgradeParsedVersion := upgradableVersions[0] - downgradeVersion := downgradeParsedVersion.CoreVersion() + downgradeVersion := downgradeParsedVersion.VersionWithPrerelease() _, err = c.Upgrade(ctx, downgradeVersion, "", false, false) require.NoErrorf(t, err, "error triggering agent upgrade to version %q", downgradeVersion)