Skip to content

Commit 9aa8f80

Browse files
Explain the difference
1 parent d1aea76 commit 9aa8f80

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/java/com/rabbitmq/client/test/server/BlockedConnection.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ protected void releaseResources() throws IOException {
3737
e.printStackTrace();
3838
}
3939
}
40+
// this test first opens a connection, then triggers
41+
// and alarm and blocks
4042
public void testBlock() throws Exception {
4143
final CountDownLatch latch = new CountDownLatch(1);
4244

@@ -47,6 +49,8 @@ public void testBlock() throws Exception {
4749
assertTrue(latch.await(10, TimeUnit.SECONDS));
4850
}
4951

52+
// this test first triggers an alarm, then opens a
53+
// connection
5054
public void testInitialBlock() throws Exception {
5155
final CountDownLatch latch = new CountDownLatch(1);
5256

0 commit comments

Comments
 (0)