Skip to content

Commit 05c084c

Browse files
author
Matthew Sackman
committed
I can do multithreaded programming in Java, honest...
1 parent caf5713 commit 05c084c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/src/com/rabbitmq/client/test/functional/ConsumerCancelNotificiation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class ConsumerCancelNotificiation extends BrokerTestCase {
3232

3333
private void assertNotified(boolean expected, boolean wait) {
3434
synchronized (lock) {
35-
if (wait) {
35+
if (wait && (expected != notified)) {
3636
try {
3737
lock.wait();
3838
} catch (InterruptedException e) {

0 commit comments

Comments
 (0)