Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AbstractSyncingTest.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AbstractSyncingTest.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AbstractSyncingTest.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AbstractSyncingTest.java
index 04945cc72a..c9c94bf936 100644
--- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AbstractSyncingTest.java
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AbstractSyncingTest.java
@@ -100,19 +100,20 @@ public abstract class AbstractSyncingTest extends AbstractCDOTest
return 0L;
}
- protected static void checkEvent(TestListener listener, int newPackageUnits, int newObjects, int changedObjects,
- int detachedObjects) throws InterruptedException
+ protected static void checkEvent(final TestListener listener, int newPackageUnits, int newObjects,
+ int changedObjects, int detachedObjects) throws InterruptedException
{
- final IEvent[] events = listener.getEvents();
new PollingTimeOuter()
{
@Override
protected boolean successful()
{
- return events.length == 1;
+ IEvent[] events = listener.getEvents();
+ return events.length >= 1;
}
}.assertNoTimeOut();
+ IEvent[] events = listener.getEvents();
IEvent event = events[0];
if (event instanceof CDOSessionInvalidationEvent)
{

Back to the top