jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject jena git commit: Remove timeout
Date Sun, 08 Jan 2017 14:22:55 GMT
Repository: jena
Updated Branches:
  refs/heads/ThreadPerGraphDataset ccf9fe389 -> de980c1fb


Remove timeout


Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/de980c1f
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/de980c1f
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/de980c1f

Branch: refs/heads/ThreadPerGraphDataset
Commit: de980c1fb91c0e7767d8a12392548cbc9f5f5d2a
Parents: ccf9fe3
Author: ajs6f <ajs6f@virginia.edu>
Authored: Sun Jan 8 09:22:47 2017 -0500
Committer: ajs6f <ajs6f@virginia.edu>
Committed: Sun Jan 8 09:22:47 2017 -0500

----------------------------------------------------------------------
 .../jena/sparql/core/pergraph/MultithreadingTest.java       | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/de980c1f/jena-arq/src/test/java/org/apache/jena/sparql/core/pergraph/MultithreadingTest.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/test/java/org/apache/jena/sparql/core/pergraph/MultithreadingTest.java
b/jena-arq/src/test/java/org/apache/jena/sparql/core/pergraph/MultithreadingTest.java
index 40efaf7..3df0582 100644
--- a/jena-arq/src/test/java/org/apache/jena/sparql/core/pergraph/MultithreadingTest.java
+++ b/jena-arq/src/test/java/org/apache/jena/sparql/core/pergraph/MultithreadingTest.java
@@ -18,8 +18,7 @@
 
 package org.apache.jena.sparql.core.pergraph;
 
-import static com.jayway.awaitility.Awaitility.waitAtMost;
-import static com.jayway.awaitility.Duration.TEN_SECONDS;
+import static com.jayway.awaitility.Awaitility.await;
 import static org.apache.jena.graph.NodeFactory.createLiteral;
 import static org.apache.jena.graph.NodeFactory.createURI;
 import static org.apache.jena.query.ReadWrite.READ;
@@ -60,7 +59,7 @@ public class MultithreadingTest extends BaseTest {
                 dataset.add(graph1, dummy, dummy, before);
                 // wait for the baton
                 startMain.set(true);
-                waitAtMost(TEN_SECONDS).untilTrue(baton);
+                await().untilTrue(baton);
                 dataset.add(graph1, dummy, dummy, after);
                 dataset.commit();
                 finishLine.set(true);
@@ -69,7 +68,7 @@ public class MultithreadingTest extends BaseTest {
             }
         }).start();
 
-        waitAtMost(TEN_SECONDS).untilTrue(startMain);
+        await().untilTrue(startMain);
         dataset.begin(WRITE);
         try {
             dataset.add(graph2, dummy, dummy, before);
@@ -80,7 +79,7 @@ public class MultithreadingTest extends BaseTest {
         } finally {
             dataset.end();
         }
-        waitAtMost(TEN_SECONDS).untilTrue(finishLine);
+        await().untilTrue(finishLine);
         dataset.begin(READ);
         try {
             assertTrue("Failed to find the triple that proves that the first thread finished!",


Mime
View raw message