Increase timeouts to make tests stable
Project: http://git-wip-us.apache.org/repos/asf/jena/repo Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/6a42f622 Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/6a42f622 Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/6a42f622 Branch: refs/heads/master Commit: 6a42f622d08528bab9074c911222d029d3d464d9 Parents: 37c9e65 Author: Andy Seaborne <[email protected]> Authored: Tue Sep 23 18:00:11 2014 +0100 Committer: Andy Seaborne <[email protected]> Committed: Tue Sep 23 18:00:11 2014 +0100 ---------------------------------------------------------------------- .../org/apache/jena/riot/lang/TestPipedRDFIterators.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jena/blob/6a42f622/jena-arq/src/test/java/org/apache/jena/riot/lang/TestPipedRDFIterators.java ---------------------------------------------------------------------- diff --git a/jena-arq/src/test/java/org/apache/jena/riot/lang/TestPipedRDFIterators.java b/jena-arq/src/test/java/org/apache/jena/riot/lang/TestPipedRDFIterators.java index b4a0b6f..5125575 100644 --- a/jena-arq/src/test/java/org/apache/jena/riot/lang/TestPipedRDFIterators.java +++ b/jena-arq/src/test/java/org/apache/jena/riot/lang/TestPipedRDFIterators.java @@ -108,7 +108,7 @@ public class TestPipedRDFIterators { Future<Integer> result = executor.submit(consumeTriples); Integer count = 0; try { - count = result.get(5, TimeUnit.SECONDS); + count = result.get(10, TimeUnit.SECONDS); } catch (TimeoutException e) { // Check that it wasn't the producer thread erroring that caused us // to time out @@ -253,7 +253,7 @@ public class TestPipedRDFIterators { Future<Integer> result = executor.submit(consumeQuads); Integer count = 0; try { - count = result.get(5, TimeUnit.SECONDS); + count = result.get(10, TimeUnit.SECONDS); } catch (TimeoutException e) { // Check that it wasn't the producer thread erroring that caused us // to time out @@ -423,7 +423,7 @@ public class TestPipedRDFIterators { Future<Integer> result = executor.submit(consumeTriples); Integer count = 0; try { - count = result.get(5, TimeUnit.SECONDS); + count = result.get(10, TimeUnit.SECONDS); } catch (TimeoutException e) { // We expect the producer thread to have errored try { @@ -669,7 +669,7 @@ public class TestPipedRDFIterators { // finished even though it errored f = executor.submit(consumer); try { - Object result = f.get(5, TimeUnit.SECONDS); + Object result = f.get(10, TimeUnit.SECONDS); Assert.fail("An error was expected"); } catch (ExecutionException e) { // Ignore - this is as expected and indicates we successfully
