Skip to content

Commit 960d924

Browse files
author
Alexandru Scvortov
committed
re-declaring the default exchange is permitted
1 parent 0b81f34 commit 960d924

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@ public void testBindToDefaultExchange() throws IOException {
3535
}
3636

3737
public void testConfigureDefaultExchange() throws IOException {
38-
try {
39-
channel.exchangeDeclare("", "direct", true);
40-
fail();
41-
} catch (IOException ioe) {
42-
checkShutdownSignal(AMQP.ACCESS_REFUSED, ioe);
43-
}
38+
channel.exchangeDeclare("", "direct", true);
39+
channel.exchangeDeclare("amq.default", "direct", true);
4440
}
4541
}

0 commit comments

Comments
 (0)