You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ok...@apache.org on 2016/10/06 17:35:37 UTC

[4/8] tinkerpop git commit: dah. bug that showed up in Jenkins testing.

dah. bug that showed up in Jenkins testing.


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

Branch: refs/heads/master
Commit: 71c7bece0a47878e81161667096b1eeab8a0f420
Parents: 20dec20
Author: Marko A. Rodriguez <ok...@gmail.com>
Authored: Tue Oct 4 14:35:55 2016 -0600
Committer: Marko A. Rodriguez <ok...@gmail.com>
Committed: Tue Oct 4 14:35:55 2016 -0600

----------------------------------------------------------------------
 .../gremlin/tinkergraph/process/TinkerGraphComputerProvider.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/71c7bece/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/process/TinkerGraphComputerProvider.java
----------------------------------------------------------------------
diff --git a/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/process/TinkerGraphComputerProvider.java b/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/process/TinkerGraphComputerProvider.java
index 3144211..139384f 100644
--- a/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/process/TinkerGraphComputerProvider.java
+++ b/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/process/TinkerGraphComputerProvider.java
@@ -39,7 +39,7 @@ public class TinkerGraphComputerProvider extends TinkerGraphProvider {
     public GraphTraversalSource traversal(final Graph graph) {
         return RANDOM.nextBoolean() ?
                 graph.traversal().withComputer(
-                        "workers", RANDOM.nextInt(4) + 1,
+                        "workers", RANDOM.nextInt(Runtime.getRuntime().availableProcessors()) + 1,
                         "graphComputer", RANDOM.nextBoolean() ?
                                 GraphComputer.class.getCanonicalName() :
                                 TinkerGraphComputer.class.getCanonicalName()) :