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 2015/12/15 23:59:16 UTC

[37/44] incubator-tinkerpop git commit: Add an assert to be sure that the driver can keep sending messages after a serialization error.

Add an assert to be sure that the driver can keep sending messages after a serialization error.


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

Branch: refs/heads/TINKERPOP-1035
Commit: fa5b273a718abd80cff956c5e99b09dfaebdcb0c
Parents: e3042c0
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon Dec 14 15:12:49 2015 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Mon Dec 14 15:12:49 2015 -0500

----------------------------------------------------------------------
 .../tinkerpop/gremlin/server/GremlinDriverIntegrateTest.java | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/fa5b273a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinDriverIntegrateTest.java
----------------------------------------------------------------------
diff --git a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinDriverIntegrateTest.java b/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinDriverIntegrateTest.java
index d05b4f3..c551ffd 100644
--- a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinDriverIntegrateTest.java
+++ b/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinDriverIntegrateTest.java
@@ -174,6 +174,10 @@ public class GremlinDriverIntegrateTest extends AbstractGremlinServerIntegration
             assertThat(inner.getMessage(), startsWith("Encountered unregistered class ID:"));
         }
 
+        // should not die completely just because we had a bad serialization error.  that kind of stuff happens
+        // from time to time, especially in the console if you're just exploring.
+        assertEquals(2, client.submit("1+1").all().get().get(0).getInt());
+
         cluster.close();
     }
 
@@ -457,6 +461,10 @@ public class GremlinDriverIntegrateTest extends AbstractGremlinServerIntegration
             assertEquals(ResponseStatusCode.SERVER_ERROR_SERIALIZATION, ((ResponseException) inner).getResponseStatusCode());
         }
 
+        // should not die completely just because we had a bad serialization error.  that kind of stuff happens
+        // from time to time, especially in the console if you're just exploring.
+        assertEquals(2, client.submit("1+1").all().get().get(0).getInt());
+
         cluster.close();
     }