DaanHoogland commented on code in PR #6858:
URL: https://github.com/apache/cloudstack/pull/6858#discussion_r1009198319
##########
engine/schema/src/test/java/com/cloud/upgrade/DatabaseUpgradeCheckerTest.java:
##########
@@ -165,9 +167,41 @@ public void testCalculateUpgradePathUnkownDbVersion() {
final DatabaseUpgradeChecker checker = new DatabaseUpgradeChecker();
final DbUpgrade[] upgrades = checker.calculateUpgradePath(dbVersion,
currentVersion);
assertNotNull(upgrades);
- assertTrue(upgrades.length == 1);
- assertTrue(upgrades[0] instanceof NoopDbUpgrade);
+ assertTrue(upgrades.length == 2);
Review Comment:
```suggestion
assertEquals("We should have 2 upgrade steps", 2, upgrades.length);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]