Skip to content

Commit ec8a3dd

Browse files
author
Simon MacMullen
committed
Increase number of messages sent in testFairness() by a factor of ten.
The fairness property is implemented in terms of randomness (see comment towards end of rabbit_limiter) so we can never be 100% this will pass but that ought to make it exponentially less likely to fail. It would probably be a bad idea to try to implement fairness in a non-random way; there'd always be an edge case somewhere that would end up being unfair.
1 parent eac7a48 commit ec8a3dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public void testFairness()
185185
{
186186
QueueingConsumer c = new QueueingConsumer(channel);
187187
final int queueCount = 3;
188-
final int messageCount = 10;
188+
final int messageCount = 100;
189189
List<String> queues = configure(c, 1, queueCount, messageCount);
190190

191191
for (int i = 0; i < messageCount - 1; i++) {

0 commit comments

Comments
 (0)