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

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
< 72AA td data-grid-cell-id="diff-0c49f5880dcba8cfaa633a14d5c9ff4842f9f1672250603c38a39f58453f9cca-41-43-0" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative diff-line-number-neutral left-side">41
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 {
43
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)
0