Skip to content

Commit

Permalink
UpdateUnitVersionsCommandTests add information on fail
Browse files Browse the repository at this point in the history
Test randomly fails, but it is unclear why. Hopefully the additional
text will help to understand the reason.

#666
  • Loading branch information
EcljpseB0T authored and jukzi committed Nov 19, 2024
1 parent ef694eb commit 108129f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ private void confirmVersionUpdates(Map<String, String> expected) throws Exceptio
for (Entry<String, String> unit : expected.entrySet()) {
String expectedID = unit.getKey();
String expectedVersion = unit.getValue();
assertTrue("ID: " + expectedID + " not found in actual", actual.containsKey(expectedID));
assertEquals("ID: " + expectedID + " has the incorrect version.", expectedVersion, actual.get(expectedID));
assertTrue("ID: " + expectedID + " not found in actual. updatedText=" + updatedText,
actual.containsKey(expectedID));
assertEquals("ID: " + expectedID + " has the incorrect version. updatedText=" + updatedText,
expectedVersion, actual.get(expectedID));
}
}

Expand Down

0 comments on commit 108129f

Please sign in to comment.