This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch branch-3.6
in repository https://gitbox.apache.org/repos/asf/zookeeper.git


The following commit(s) were added to refs/heads/branch-3.6 by this push:
     new 732a3d3  ZOOKEEPER-4227: X509AuthFailureTest is failing consistently
732a3d3 is described below

commit 732a3d3d8f0338a787a91fa4b1975c63e56d48a4
Author: Mohammad Arshad <[email protected]>
AuthorDate: Wed Mar 10 17:12:47 2021 +0100

    ZOOKEEPER-4227: X509AuthFailureTest is failing consistently
    
    Author: Mohammad Arshad <[email protected]>
    
    Reviewers: Enrico Olivelli <[email protected]>
    
    Closes #1636 from arshadmohammad/ZOOKEEPER-4227-branch-3.6
---
 .../test/java/org/apache/zookeeper/server/X509AuthFailureTest.java   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/zookeeper-server/src/test/java/org/apache/zookeeper/server/X509AuthFailureTest.java
 
b/zookeeper-server/src/test/java/org/apache/zookeeper/server/X509AuthFailureTest.java
index ac39faf..7f22d3a 100644
--- 
a/zookeeper-server/src/test/java/org/apache/zookeeper/server/X509AuthFailureTest.java
+++ 
b/zookeeper-server/src/test/java/org/apache/zookeeper/server/X509AuthFailureTest.java
@@ -20,6 +20,7 @@ package org.apache.zookeeper.server;
 import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
 import org.apache.zookeeper.PortAssignment;
+import org.apache.zookeeper.ZKTestCase;
 import org.apache.zookeeper.ZooKeeper;
 import org.apache.zookeeper.client.ZKClientConfig;
 import org.apache.zookeeper.common.ClientX509Util;
@@ -30,7 +31,7 @@ import org.junit.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class X509AuthFailureTest {
+public class X509AuthFailureTest extends ZKTestCase {
     protected static final Logger LOG = 
LoggerFactory.getLogger(X509AuthFailureTest.class);
 
     private static ClientX509Util clientX509Util;
@@ -71,6 +72,8 @@ public class X509AuthFailureTest {
 
         ZooKeeperServerMainTest.MainThread mt = new 
ZooKeeperServerMainTest.MainThread(CLIENT_PORT, SECURE_CLIENT_PORT, true, null);
         mt.start();
+        assertTrue(
+            ClientBase.waitForServerUp("127.0.0.1:" + CLIENT_PORT, 
ClientBase.CONNECTION_TIMEOUT));
 
         try {
             ZooKeeper zk = createZKClnt("127.0.0.1:" + SECURE_CLIENT_PORT);

Reply via email to