You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2017/03/15 15:58:31 UTC
jena git commit: Choose a port with some checking.
Repository: jena
Updated Branches:
refs/heads/master daaac0338 -> 4e7459cc4
Choose a port with some checking.
(attempt to stablilze the build on busy Jenkins servers)
Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/4e7459cc
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/4e7459cc
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/4e7459cc
Branch: refs/heads/master
Commit: 4e7459cc49d7f176da19ed5a5ff4876ed28ccf9c
Parents: daaac03
Author: Andy Seaborne <an...@apache.org>
Authored: Wed Mar 15 15:51:49 2017 +0000
Committer: Andy Seaborne <an...@apache.org>
Committed: Wed Mar 15 15:51:49 2017 +0000
----------------------------------------------------------------------
.../src/test/java/org/apache/jena/fuseki/TestAuth.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jena/blob/4e7459cc/jena-fuseki2/jena-fuseki-core/src/test/java/org/apache/jena/fuseki/TestAuth.java
----------------------------------------------------------------------
diff --git a/jena-fuseki2/jena-fuseki-core/src/test/java/org/apache/jena/fuseki/TestAuth.java b/jena-fuseki2/jena-fuseki-core/src/test/java/org/apache/jena/fuseki/TestAuth.java
index a860291..c2fba36 100644
--- a/jena-fuseki2/jena-fuseki-core/src/test/java/org/apache/jena/fuseki/TestAuth.java
+++ b/jena-fuseki2/jena-fuseki-core/src/test/java/org/apache/jena/fuseki/TestAuth.java
@@ -34,6 +34,7 @@ import org.apache.http.impl.client.BasicCredentialsProvider;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.jena.atlas.logging.LogCtl ;
import org.apache.jena.atlas.web.HttpException ;
+import org.apache.jena.fuseki.server.FusekiEnv ;
import org.apache.jena.query.DatasetAccessor ;
import org.apache.jena.query.DatasetAccessorFactory ;
import org.apache.jena.query.QueryExecutionFactory ;
@@ -58,7 +59,7 @@ public class TestAuth {
// Use different port etc because sometimes the previous testing servers
// don't release ports fast enough (OS issue / Linux)
- public static final int authPort = ServerCtl.port()+10 ;
+ public static final int authPort = FusekiEnv.choosePort() ;
public static final String authUrlRoot = "http://localhost:"+authPort+"/" ;
public static final String authDatasetPath = "/dataset" ;
public static final String authServiceUpdate = "http://localhost:"+authPort+authDatasetPath+"/update" ;