aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/upgrade/src/test/java/org/sonarsource/sonarqube/upgrade/UpgradeTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/upgrade/src/test/java/org/sonarsource/sonarqube/upgrade/UpgradeTest.java b/tests/upgrade/src/test/java/org/sonarsource/sonarqube/upgrade/UpgradeTest.java
index 59d5abde857..96c0d296960 100644
--- a/tests/upgrade/src/test/java/org/sonarsource/sonarqube/upgrade/UpgradeTest.java
+++ b/tests/upgrade/src/test/java/org/sonarsource/sonarqube/upgrade/UpgradeTest.java
@@ -120,7 +120,9 @@ public class UpgradeTest {
private void upgrade(Version sqVersion) {
checkSystemStatus(sqVersion, ServerStatusResponse.Status.DB_MIGRATION_NEEDED);
- checkUrlsBeforeUpgrade();
+ if (sqVersion.equals(VERSION_CURRENT)) {
+ checkUrlsBeforeUpgrade();
+ }
ServerMigrationResponse serverMigrationResponse = new ServerMigrationCall(orchestrator).callAndWait();
assertThat(serverMigrationResponse.getStatus())
.describedAs("Migration status of version " + sqVersion + " should be MIGRATION_SUCCEEDED")