提交 4f22047c 编写于 作者: M Matteo Merli 提交者: GitHub

Fix #644: BrokerServiceThrottlingTest.testLookupThrottlingForClientByBroker...

Fix #644: BrokerServiceThrottlingTest.testLookupThrottlingForClientByBroker intermittent failures (#645)
上级 b1e28d1c
......@@ -173,8 +173,10 @@ public class BrokerServiceThrottlingTest extends BrokerTestBase {
}
latch.await();
for (int i = 0; i < successfulConsumers.size(); i++) {
successfulConsumers.get(i).close();
for (Consumer c : successfulConsumers) {
if (c != null) {
c.close();
}
}
pulsarClient.close();
assertNotEquals(successfulConsumers.size(), totalConsumers);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册