Skip to content

Commit cc34f6b

Browse files
author
Simon MacMullen
committed
Probably better to test with a second declaration that would not fail if it were the first.
1 parent ee4bca8 commit cc34f6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void testRedeclareQueueWithInvalidDeadLetterExchangeArg()
8686
{
8787
declareQueue("inequivalent_dlx_name", "dlx_foo", null, null);
8888
try {
89-
declareQueue("inequivalent_dlx_name", 133, null, null);
89+
declareQueue("inequivalent_dlx_name", "dlx_bar", null, null);
9090
fail("x-dead-letter-exchange must be a valid exchange name " +
9191
"and must not change in subsequent declarations");
9292
} catch (IOException ex) {
@@ -110,7 +110,7 @@ public void testRedeclareQueueWithInvalidDeadLetterRoutingKeyArg()
110110
{
111111
declareQueue("inequivalent_dlx_rk", "amq.direct", "dlx_rk", null);
112112
try {
113-
declareQueue("inequivalent_dlx_rk", "amq.direct", 144, null);
113+
declareQueue("inequivalent_dlx_rk", "amq.direct", "dlx_rk2", null);
114114
fail("x-dead-letter-routing-key must be a string and must not " +
115115
"change in subsequent declarations");
116116
} catch (IOException ex) {

0 commit comments

Comments
 (0)