Skip to content

Commit 1c1885e

Browse files
author
Matthew Sackman
committed
Oops. Turns out the test suite needs the producer to also create at least the exchange.
1 parent 3156fec commit 1c1885e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/src/com/rabbitmq/examples/ProducerMain.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,12 @@ private void runIt() throws IOException {
153153
String queueName = "test queue";
154154
String exchangeName = "test exchange";
155155

156+
String testQueueName = "test queue";
157+
_channel.queueDeclare(testQueueName, true);
158+
159+
String testExchangeName = "test exchange";
160+
_channel.exchangeDeclare(testExchangeName, "fanout", true);
161+
156162
if (shouldCommit()) {
157163
_channel.txSelect();
158164
}

0 commit comments

Comments
 (0)