Skip to content

Commit 108129f

Browse files
committed
UpdateUnitVersionsCommandTests add information on fail
Test randomly fails, but it is unclear why. Hopefully the additional text will help to understand the reason. #666
1 parent ef694eb commit 108129f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ui/org.eclipse.pde.genericeditor.extension.tests/src/org/eclipse/pde/genericeditor/extension/tests/UpdateUnitVersionsCommandTests.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@ private void confirmVersionUpdates(Map<String, String> expected) throws Exceptio
8888
for (Entry<String, String> unit : expected.entrySet()) {
8989
String expectedID = unit.getKey();
9090
String expectedVersion = unit.getValue();
91-
assertTrue("ID: " + expectedID + " not found in actual", actual.containsKey(expectedID));
92-
assertEquals("ID: " + expectedID + " has the incorrect version.", expectedVersion, actual.get(expectedID));
91+
assertTrue("ID: " + expectedID + " not found in actual. updatedText=" + updatedText,
92+
actual.containsKey(expectedID));
93+
assertEquals("ID: " + expectedID + " has the incorrect version. updatedText=" + updatedText,
94+
expectedVersion, actual.get(expectedID));
9395
}
9496
}
9597

0 commit comments

Comments
 (0)