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/01/12 22:10:52 UTC

[05/15] incubator-tinkerpop git commit: Fix bad test comparison

Fix bad test comparison


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

Branch: refs/heads/master
Commit: 4f7ed10a146bcb0a66cb9217304bd3d0a5c7a22b
Parents: 11b9009
Author: Benjamin Han <be...@siftsec.com>
Authored: Thu Dec 10 09:01:40 2015 -0800
Committer: Benjamin Han <be...@siftsec.com>
Committed: Thu Dec 10 09:01:40 2015 -0800

----------------------------------------------------------------------
 .../java/org/apache/tinkerpop/gremlin/structure/io/IoTest.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/4f7ed10a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoTest.java
----------------------------------------------------------------------
diff --git a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoTest.java b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoTest.java
index 6848f6c..bae5df3 100644
--- a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoTest.java
+++ b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoTest.java
@@ -306,8 +306,8 @@ public class IoTest {
                 throw new RuntimeException(ioe);
             }
 
-            assertEquals(source.traversal().V().count(), target.traversal().V().count());
-            assertEquals(source.traversal().E().count(), target.traversal().E().count());
+            assertEquals(IteratorUtils.count(source.vertices()), IteratorUtils.count(target.vertices()));
+            assertEquals(IteratorUtils.count(source.edges()), IteratorUtils.count(target.vertices()));
         }
     }