You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2016/02/22 14:19:55 UTC

[03/15] incubator-tinkerpop git commit: TINKERPOP-1041 - give import thread a chance to run

TINKERPOP-1041 - give import thread a chance to run


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

Branch: refs/heads/master
Commit: 0715c4ef247351cdd994378273f7d1b3aba282a8
Parents: 92edead
Author: Marvin Froeder <ma...@vizexplorer.com>
Authored: Mon Feb 1 09:47:15 2016 +1300
Committer: Marvin Froeder <ma...@vizexplorer.com>
Committed: Mon Feb 22 09:30:54 2016 +1300

----------------------------------------------------------------------
 .../tinkerpop/gremlin/groovy/engine/ScriptEnginesTest.java      | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/0715c4ef/gremlin-groovy/src/test/java/org/apache/tinkerpop/gremlin/groovy/engine/ScriptEnginesTest.java
----------------------------------------------------------------------
diff --git a/gremlin-groovy/src/test/java/org/apache/tinkerpop/gremlin/groovy/engine/ScriptEnginesTest.java b/gremlin-groovy/src/test/java/org/apache/tinkerpop/gremlin/groovy/engine/ScriptEnginesTest.java
index eb45c0b..9a7e1bf 100644
--- a/gremlin-groovy/src/test/java/org/apache/tinkerpop/gremlin/groovy/engine/ScriptEnginesTest.java
+++ b/gremlin-groovy/src/test/java/org/apache/tinkerpop/gremlin/groovy/engine/ScriptEnginesTest.java
@@ -185,6 +185,7 @@ public class ScriptEnginesTest {
                     successes.incrementAndGet();
                 } catch (Exception ex) {
                     if (failures.incrementAndGet() == 500) threadImport.start();
+                    Thread.yield();
                 }
             })
         );
@@ -194,8 +195,8 @@ public class ScriptEnginesTest {
         threadEvalAndTriggerImport.join();
         threadImport.join();
 
-        assertTrue(successes.intValue() > 0);
-        assertTrue(failures.intValue() >= 500);
+        assertTrue("Success: " + successes.intValue() + " - Failures: " + failures.intValue(), successes.intValue() > 0);
+        assertTrue("Success: " + successes.intValue() + " - Failures: " + failures.intValue(), failures.intValue() >= 500);
 
         engines.close();
     }