We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e06076 commit b6d8773Copy full SHA for b6d8773
test/src/com/rabbitmq/client/test/functional/ConsumerCancelNotification.java
@@ -28,6 +28,7 @@
28
import java.util.concurrent.ArrayBlockingQueue;
29
import java.util.concurrent.BlockingQueue;
30
import java.util.concurrent.CountDownLatch;
31
+import java.util.concurrent.TimeUnit;
32
33
public class ConsumerCancelNotification extends BrokerTestCase {
34
@@ -128,7 +129,7 @@ public void testConsumerCancellationHandlerUsesBlockingOperations()
128
129
channel.basicConsume(queue, consumer);
130
channel.queueDelete(queue);
131
- latch.await();
132
+ latch.await(500, TimeUnit.MILLISECONDS);
133
// verify that handleCancel succeeded declaring the queue
134
channel.queueDeclarePassive(altQueue);
135
}
0 commit comments