tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject [1/2] tinkerpop git commit: Add more pauses to assure log messages propagate in tests CTR [Forced Update!]
Date Thu, 03 Nov 2016 11:59:19 GMT
Repository: tinkerpop
Updated Branches:
  refs/heads/TINKERPOP-1490 81f46bf42 -> 8ebd51dbb (forced update)


Add more pauses to assure log messages propagate in tests CTR


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

Branch: refs/heads/TINKERPOP-1490
Commit: 53e1c21a3bcf3c6a5f0b9fa69d8255a9949633d8
Parents: 49b49e2
Author: Stephen Mallette <spmva@genoprime.com>
Authored: Thu Nov 3 07:54:59 2016 -0400
Committer: Stephen Mallette <spmva@genoprime.com>
Committed: Thu Nov 3 07:54:59 2016 -0400

----------------------------------------------------------------------
 .../gremlin/server/GremlinServerSessionIntegrateTest.java       | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/53e1c21a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerSessionIntegrateTest.java
----------------------------------------------------------------------
diff --git a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerSessionIntegrateTest.java
b/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerSessionIntegrateTest.java
index 25c890b..5a37a99 100644
--- a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerSessionIntegrateTest.java
+++ b/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerSessionIntegrateTest.java
@@ -245,6 +245,8 @@ public class GremlinServerSessionIntegrateTest  extends AbstractGremlinServerInt
             cluster.close();
         }
 
+        // wait for log to flush before trying to assert log messages
+        Thread.sleep(1000);
         assertEquals(1, recordingAppender.getMessages().stream()
                 .filter(msg -> msg.equals("INFO - Session shouldCloseSessionOnceOnRequest
closed\n")).count());
     }
@@ -280,6 +282,9 @@ public class GremlinServerSessionIntegrateTest  extends AbstractGremlinServerInt
             cluster.close();
         }
 
+        // wait for log to flush before trying to assert log messages
+        Thread.sleep(1000);
+
         // there will be on for the timeout and a second for closing the cluster
         assertEquals(2, recordingAppender.getMessages().stream()
                 .filter(msg -> msg.equals("INFO - Session shouldHaveTheSessionTimeout
closed\n")).count());


Mime
View raw message