فهرست منبع

ZOOKEEPER-3159: Flaky: ClientRequestTimeoutTest.testClientRequestTimeout

Can't see a reason why testing again the create method without packet drop. Timeout scenario has already been tested and this part seem to make the test flaky. Removed.

Author: Andor Molnar <andor@apache.org>

Reviewers: nkalmar@cloudera.com, andor@apache.org

Closes #653 from anmolnar/ZOOKEEPER-3159
Andor Molnar 6 سال پیش
والد
کامیت
6285f332a7
1فایلهای تغییر یافته به همراه0 افزوده شده و 8 حذف شده
  1. 0 8
      zookeeper-common/src/test/java/org/apache/zookeeper/ClientRequestTimeoutTest.java

+ 0 - 8
zookeeper-common/src/test/java/org/apache/zookeeper/ClientRequestTimeoutTest.java

@@ -92,14 +92,6 @@ public class ClientRequestTimeoutTest extends QuorumPeerTestBase {
             assertEquals(KeeperException.Code.REQUESTTIMEOUT.intValue(),
                     exception.code().intValue());
         }
-        // reset the error behavior
-        dropPacket = false;
-        watch1.waitForConnected(ClientBase.CONNECTION_TIMEOUT);
-
-        String path = "/clientHang3";
-        String create = zk.create(path, data.getBytes(), Ids.OPEN_ACL_UNSAFE,
-                CreateMode.PERSISTENT);
-        assertEquals(path, create);
 
         // do cleanup
         zk.close();