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 2021/04/05 16:58:45 UTC
[tinkerpop] 03/07: Ignored
shouldEventuallySucceedOnSameServerWithDefault
This is an automated email from the ASF dual-hosted git repository.
spmallette pushed a commit to branch TINKERPOP-2245
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
commit c05c29123b5247fdba9d99e46f40a91990ef2712
Author: Stephen Mallette <st...@amazon.com>
AuthorDate: Thu Apr 1 07:06:30 2021 -0400
Ignored shouldEventuallySucceedOnSameServerWithDefault
This test is technically failing but it had some bad assertions that made it look like it was actually passing. CTR
---
.../tinkerpop/gremlin/server/GremlinDriverIntegrateTest.java | 7 +++++++
1 file changed, 7 insertions(+)
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 ce93582..f006cc4 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
@@ -56,6 +56,7 @@ import org.apache.tinkerpop.gremlin.util.iterator.IteratorUtils;
import org.hamcrest.core.IsInstanceOf;
import org.junit.After;
import org.junit.Before;
+import org.junit.Ignore;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.Mockito;
@@ -373,6 +374,7 @@ public class GremlinDriverIntegrateTest extends AbstractGremlinServerIntegration
}
@Test
+ @Ignore("This test had some bad semantics that allowed it to pass even though it was technically failing")
public void shouldEventuallySucceedOnSameServerWithDefault() throws Exception {
stopServer();
@@ -390,6 +392,8 @@ public class GremlinDriverIntegrateTest extends AbstractGremlinServerIntegration
startServer();
+ boolean succeedAtLeastOnce = false;
+
// default reconnect time is 1 second so wait some extra time to be sure it has time to try to bring it
// back to life. usually this passes on the first attempt, but docker is sometimes slow and we get failures
// waiting for Gremlin Server to pop back up
@@ -398,12 +402,15 @@ public class GremlinDriverIntegrateTest extends AbstractGremlinServerIntegration
try {
final int result = client.submit("1+1").all().join().get(0).getInt();
assertEquals(2, result);
+ succeedAtLeastOnce = true;
break;
} catch (Exception ignored) {
logger.warn("Attempt {} failed on shouldEventuallySucceedOnSameServerWithDefault", ix);
}
}
+ assertThat(succeedAtLeastOnce, is(true));
+
} finally {
cluster.close();
}