Skip to content

Commit a8d16eb

Browse files
committed
Merged 20046 into default
2 parents f50e4d8 + 4d8f839 commit a8d16eb

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public void openConnection()
9292
throws IOException
9393
{
9494
if (connection == null) {
95-
connection = connectionFactory.newConnection("localhost");
95+
connection = connectionFactory.newConnection("10.224.189.229");
9696
}
9797
}
9898

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,26 @@ public void testFanoutRouting() throws Exception {
144144
}
145145
}
146146

147+
public void testTopicRouting() throws Exception {
148+
149+
List<String> queues = new ArrayList<String>();
150+
151+
//100+ queues is the trigger point for bug20046
152+
for (int i = 0; i < 100; i++) {
153+
channel.queueDeclare();
154+
AMQP.Queue.DeclareOk ok = channel.queueDeclare();
155+
String q = ok.getQueue();
156+
channel.queueBind(q, "amq.topic", "#");
157+
queues.add(q);
158+
}
159+
160+
channel.basicPublish("amq.topic", "", null, "topic".getBytes());
161+
162+
for (String q : queues) {
163+
checkGet(q, true);
164+
}
165+
}
166+
147167
public void testUnbind() throws Exception {
148168
AMQP.Queue.DeclareOk ok = channel.queueDeclare();
149169
String queue = ok.getQueue();

0 commit comments

Comments
 (0)