Skip to content

Commit b6d8773

Browse files
await up to 500 ms
1 parent 5e06076 commit b6d8773

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import java.util.concurrent.ArrayBlockingQueue;
2929
import java.util.concurrent.BlockingQueue;
3030
import java.util.concurrent.CountDownLatch;
31+
import java.util.concurrent.TimeUnit;
3132

3233
public class ConsumerCancelNotification extends BrokerTestCase {
3334

@@ -128,7 +129,7 @@ public void testConsumerCancellationHandlerUsesBlockingOperations()
128129
channel.basicConsume(queue, consumer);
129130
channel.queueDelete(queue);
130131

131-
latch.await();
132+
latch.await(500, TimeUnit.MILLISECONDS);
132133
// verify that handleCancel succeeded declaring the queue
133134
channel.queueDeclarePassive(altQueue);
134135
}

0 commit comments

Comments
 (0)