Skip to content

Commit

Permalink
ZOOKEEPER-4227: X509AuthFailureTest is failing consistently
Browse files Browse the repository at this point in the history
Author: Mohammad Arshad <[email protected]>

Reviewers: Enrico Olivelli <[email protected]>

Closes apache#1616 from arshadmohammad/ZOOKEEPER-4227
  • Loading branch information
arshadmohammad authored and Enrico Olivelli committed Mar 10, 2021
1 parent 2f98b8f commit f52918a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.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;
Expand All @@ -30,7 +31,7 @@
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;
Expand Down Expand Up @@ -71,6 +72,8 @@ public void testSecureStandaloneServerAuthNFailure() throws Exception {

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);
Expand Down

0 comments on commit f52918a

Please sign in to comment.