tmf: Fix TestRefreshTextTrace failure because of bad time zone reset
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.ui.swtbot.tests / shared / org / eclipse / tracecompass / tmf / ui / swtbot / tests / shared / ConditionHelpers.java
index 5bb3256e1d7a765322989130edbb84f5fbe67ee8..00a67656442ac297723be4186e7b2d85ab777fa7 100644 (file)
@@ -434,6 +434,7 @@ public final class ConditionHelpers {
     private static class EventsTableSelectionCondition extends DefaultCondition {
         private long fSelectionTime;
         private SWTWorkbenchBot fBot;
+        private long fCurValue;
 
         private EventsTableSelectionCondition(SWTWorkbenchBot bot, long selectionTime) {
             fBot = bot;
@@ -446,12 +447,13 @@ public final class ConditionHelpers {
             if (eventsTableSelection.isEmpty()) {
                 return false;
             }
-            return ((ITmfEvent) eventsTableSelection.getFirstElement()).getTimestamp().getValue() == fSelectionTime;
+            fCurValue = ((ITmfEvent) eventsTableSelection.getFirstElement()).getTimestamp().getValue();
+            return fCurValue == fSelectionTime;
         }
 
         @Override
         public String getFailureMessage() {
-            return "The selection in the table was not an event with timestamp " + fSelectionTime;
+            return "The selection in the table was not an event with timestamp " + fSelectionTime + ". Actual is " + fCurValue;
         }
 
         private StructuredSelection getEventsTableSelection() {
This page took 0.025658 seconds and 5 git commands to generate.