jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject jena git commit: Attempt to get test more stable on Windows Jenkins CI.
Date Fri, 25 Sep 2015 11:40:19 GMT
Repository: jena
Updated Branches:
  refs/heads/master 814cf759e -> c213e7cc1


Attempt to get test more stable on Windows Jenkins CI.

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

Branch: refs/heads/master
Commit: c213e7cc1bbd486742a575f4789162da440007ae
Parents: 814cf75
Author: Andy Seaborne <andy@apache.org>
Authored: Fri Sep 25 12:39:58 2015 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Fri Sep 25 12:39:58 2015 +0100

----------------------------------------------------------------------
 .../apache/jena/sparql/api/TestQueryExecutionTimeout1.java   | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/c213e7cc/jena-arq/src/test/java/org/apache/jena/sparql/api/TestQueryExecutionTimeout1.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/test/java/org/apache/jena/sparql/api/TestQueryExecutionTimeout1.java
b/jena-arq/src/test/java/org/apache/jena/sparql/api/TestQueryExecutionTimeout1.java
index 43d784d..f30194d 100644
--- a/jena-arq/src/test/java/org/apache/jena/sparql/api/TestQueryExecutionTimeout1.java
+++ b/jena-arq/src/test/java/org/apache/jena/sparql/api/TestQueryExecutionTimeout1.java
@@ -71,7 +71,7 @@ public class TestQueryExecutionTimeout1 extends BaseTest
         QueryExecution qExec = QueryExecutionFactory.create(qs, ds) ;
         qExec.setTimeout(50, TimeUnit.MILLISECONDS) ;
         ResultSet rs = qExec.execSelect() ;
-        sleep(120) ;
+        sleep(200) ;
         exceptionExpected(rs) ; 
     }
 
@@ -239,7 +239,11 @@ public class TestQueryExecutionTimeout1 extends BaseTest
 
     private static void exceptionExpected(ResultSet rs)
     {
-        try { ResultSetFormatter.consume(rs) ; fail("QueryCancelledException expected") ;
} catch (QueryCancelledException ex) {}
+        try {
+            ResultSetFormatter.consume(rs);
+            fail("QueryCancelledException expected");
+        }
+        catch (QueryCancelledException ex) {}
     }
     
 }


Mime
View raw message