summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkwannheden2009-05-25 08:23:50 (EDT)
committer sefftinge2009-05-25 08:23:50 (EDT)
commitbee802647d1278a8419e68a0eb7d9fd8c32a69da (patch)
tree4b2f6397d757575640561101d7098b54f37d7895
parentcf7eab9e8d381c749c60b93db388cf49e77d9d04 (diff)
downloadorg.eclipse.xtext-bee802647d1278a8419e68a0eb7d9fd8c32a69da.zip
org.eclipse.xtext-bee802647d1278a8419e68a0eb7d9fd8c32a69da.tar.gz
org.eclipse.xtext-bee802647d1278a8419e68a0eb7d9fd8c32a69da.tar.bz2
added missing feeder commits in concurrency test - it still succeeds :-)
-rw-r--r--tests/org.eclipse.emf.index.tests/src/org/eclipse/emf/index/integration/ConcurrencyTest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/org.eclipse.emf.index.tests/src/org/eclipse/emf/index/integration/ConcurrencyTest.java b/tests/org.eclipse.emf.index.tests/src/org/eclipse/emf/index/integration/ConcurrencyTest.java
index ef7d633..af47885 100644
--- a/tests/org.eclipse.emf.index.tests/src/org/eclipse/emf/index/integration/ConcurrencyTest.java
+++ b/tests/org.eclipse.emf.index.tests/src/org/eclipse/emf/index/integration/ConcurrencyTest.java
@@ -69,6 +69,7 @@ public class ConcurrencyTest extends AbstractEmfIndexTest {
ResourceSet resourceSet = new ResourceSetImpl();
resourceSet.getResources().add(resource);
resourceIndexer.resourceChanged(uri, feeder);
+ feeder.commit();
return resource;
}
@@ -82,16 +83,17 @@ public class ConcurrencyTest extends AbstractEmfIndexTest {
while (true) {
resource.getContents().clear();
resourceIndexer.resourceChanged(resource, feeder);
+ feeder.commit();
resource.getContents().addAll(contents);
resourceIndexer.resourceChanged(resource, feeder);
+ feeder.commit();
}
};
};
indexerThread.start();
EReferenceDescriptor.Query crossRefQuery = index.eReferenceDAO().createQuery();
- crossRefQuery.targetFragment("//Feature");
-
+ crossRefQuery.targetFragment("*NamedElement*");
for (int i = 0; i < 1000; i++) {
crossRefQuery.executeListResult();
}