Skip to content

Commit 1f8a59a

Browse files
author
Simon MacMullen
committed
Wow, that was a broken test. Wrong code, and also didn't check that the declare actually failed. The two cancelled each other out. Until -server 05c7c0b4047c.
1 parent df3d31a commit 1f8a59a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,10 @@ public void testTTLMustBePositive() throws Exception {
108108
public void testQueueRedeclareEquivalence() throws Exception {
109109
declareQueue(TTL_QUEUE_NAME, 10);
110110
try {
111-
declareQueue(TTL_QUEUE_NAME, 20);
111+
declareQueue(TTL_QUEUE_NAME, 20);
112+
fail("Should not be able to redeclare with different TTL");
112113
} catch(IOException ex) {
113-
checkShutdownSignal(AMQP.NOT_ALLOWED, ex);
114+
checkShutdownSignal(AMQP.PRECONDITION_FAILED, ex);
114115
}
115116
}
116117

0 commit comments

Comments
 (0)