8000 Explain the difference · aashish13/rabbitmq-java-client@52c7b1c · GitHub
[go: up one dir, main page]

Skip to content

Commit 52c7b1c

Browse files
Explain the difference
1 parent 59d36cd commit 52c7b1c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

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

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

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

0 commit comments

Comments
 (0)
0