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.

eclipse-pde#666
  • Loading branch information
EcljpseB0T authored and stewedbeef committed Nov 22, 2024
1 parent ef694eb commit 267f786
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 267f786

Please sign in to comment.