Skip to content

Commit 8520066

Browse files
author
Simon MacMullen
committed
Merge bug 24124
2 parents ac2376f + 1f8a59a commit 8520066

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
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

test/src/com/rabbitmq/client/test/server/Firehose.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@ public class Firehose extends BrokerTestCase {
1515
@Override
1616
protected void createResources() throws IOException {
1717
super.createResources();
18-
channel.exchangeDeclare("trace", "fanout", false, true, null);
1918
channel.exchangeDeclare("test", "fanout", false, true, null);
2019
q = channel.queueDeclare().getQueue();
2120
firehose = channel.queueDeclare().getQueue();
2221
channel.queueBind(q, "test", "");
23-
channel.queueBind(firehose, "trace", "");
22+
channel.queueBind(firehose, "amq.rabbitmq.trace", "#");
2423
}
2524

2625
public void testFirehose() throws IOException {
@@ -60,10 +59,10 @@ private void checkHeaders(Map<String, Object> pubHeaders) {
6059
}
6160

6261
private void enable() throws IOException {
63-
Host.rabbitmqctl("set_env trace_exchanges '[{<<\"/\">>, <<\"trace\">>}]'");
62+
Host.rabbitmqctl("trace_on");
6463
}
6564

6665
private void disable() throws IOException {
67-
Host.rabbitmqctl("unset_env trace_exchanges");
66+
Host.rabbitmqctl("trace_off");
6867
}
6968
}

0 commit comments

Comments
 (0)