Skip to content

Commit

Permalink
Fix testDisconnectClientWithoutClosingConnection (apache#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdhabalia authored and merlimat committed Jun 22, 2017
1 parent afd64df commit c0ba223
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ public void testDisconnectClientWithoutClosingConnection() throws Exception {

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

0 comments on commit c0ba223

Please sign in to comment.