提交 c0ba223b 编写于 作者: R Rajan 提交者: Matteo Merli

Fix testDisconnectClientWithoutClosingConnection (#516)

上级 afd64dfc
......@@ -197,9 +197,9 @@ public class BrokerClientIntegrationTest extends ProducerConsumerBase {
// unload ns-bundle2 as well
pulsar.getNamespaceService().unloadNamespaceBundle((NamespaceBundle) bundle2);
verify(producer2, atLeastOnce()).connectionClosed(anyObject());
// let producer2 give some time to get disconnect signal and get disconencted
Thread.sleep(200);
verify(producer2, atLeastOnce()).connectionClosed(anyObject());
// producer1 must not be able to connect again
assertTrue(prod1.getClientCnx() == null);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册