Skip to content

Commit 1eb4b35

Browse files
committed
Fix test exchange declaration
- exchanges are now durable by default and tests fail if the exchange already exists on the CI broker (declared by a newer release).
1 parent eeaeb68 commit 1eb4b35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-rabbit/src/test/java/org/springframework/amqp/rabbit/annotation/EnableRabbitIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ interface TxClassLevel {
12681268

12691269
@RabbitListener(bindings = @QueueBinding
12701270
(value = @Queue,
1271-
exchange = @Exchange(value = "multi.exch.tx", autoDelete = "true"),
1271+
exchange = @Exchange(value = "multi.exch.tx", autoDelete = "true", durable = "true"),
12721272
key = "multi.rk.tx"))
12731273
static class TxClassLevelImpl implements TxClassLevel {
12741274

0 commit comments

Comments
 (0)