Skip to content

Commit a722040

Browse files
committed
Revert "Disable quorum test temporarily"
This reverts commit 179fcd8.
1 parent 179fcd8 commit a722040

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

spring-rabbit/src/test/java/org/springframework/amqp/rabbit/core/FixedReplyQueueDeadLetterTests.java

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
import org.junit.jupiter.api.AfterAll;
2828
import org.junit.jupiter.api.BeforeAll;
29-
import org.junit.jupiter.api.Disabled;
3029
import org.junit.jupiter.api.Test;
3130

3231
import org.springframework.amqp.core.Binding;
@@ -175,7 +174,6 @@ void testQueueArgs3() throws MalformedURLException, URISyntaxException, Interrup
175174
* Does not require a 3.8 broker - they are just arbitrary arguments.
176175
*/
177176
@Test
178-
@Disabled("Until the quorum_queue feature flag is enabled on Bamboo")
179177
void testQuorumArgs() throws MalformedURLException, URISyntaxException, InterruptedException {
180178
Client client = new Client(brokerRunning.getAdminUri(), brokerRunning.getAdminUser(),
181179
brokerRunning.getAdminPassword());
@@ -291,9 +289,9 @@ public Queue requestQueue() {
291289
@Bean
292290
public Queue replyQueue() {
293291
return QueueBuilder.nonDurable("dlx.test.replyQ")
294-
.autoDelete()
295-
.withArgument("x-dead-letter-exchange", "reply.dlx")
296-
.build();
292+
.autoDelete()
293+
.withArgument("x-dead-letter-exchange", "reply.dlx")
294+
.build();
297295
}
298296

299297
/**
@@ -354,13 +352,13 @@ public Queue allArgs3() {
354352
.build();
355353
}
356354

357-
// @Bean
358-
// public Queue quorum() {
359-
// return QueueBuilder.durable("test.quorum")
360-
// .quorum()
361-
// .deliveryLimit(10)
362-
// .build();
363-
// }
355+
@Bean
356+
public Queue quorum() {
357+
return QueueBuilder.durable("test.quorum")
358+
.quorum()
359+
.deliveryLimit(10)
360+
.build();
361+
}
364362

365363
@Bean
366364
public DeadListener deadListener() {
@@ -398,7 +396,6 @@ public String handleMessage(String foo) throws Exception {
398396
}
399397

400398
public static class DeadListener {
401-
402399
private final CountDownLatch latch = new CountDownLatch(1);
403400

404401
public void handleMessage(@SuppressWarnings("unused") String foo) {

0 commit comments

Comments
 (0)