summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Harrop <rob@rabbitmq.com>2010-11-05 12:54:03 +0000
committerRob Harrop <rob@rabbitmq.com>2010-11-05 12:54:03 +0000
commit40f91556e3d9a673d4a1c34f9e46f98052b92b45 (patch)
treef9e40c207ee786e38779b7518355f848f85f4812
parent4767dd7933fa5343d17bbeb1befc3fbbeb04298b (diff)
downloadrabbitmq-server-40f91556e3d9a673d4a1c34f9e46f98052b92b45.tar.gz
Reworked to test to be more predictable
-rw-r--r--src/rabbit_tests.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl
index eecc27b3..4f543704 100644
--- a/src/rabbit_tests.erl
+++ b/src/rabbit_tests.erl
@@ -1879,7 +1879,7 @@ test_variable_queue_ack_limiting(VQ0) ->
VQ2 = publish_fetch_and_ack(Churn, Len, VQ1),
%% update stats for duration
- {Duration, VQ3} = rabbit_variable_queue:ram_duration(VQ2),
+ {_Duration, VQ3} = rabbit_variable_queue:ram_duration(VQ2),
%% fetch half the messages
{VQ4, _AckTags} = variable_queue_fetch(Len div 2, false, false, Len, VQ3),
@@ -1890,10 +1890,10 @@ test_variable_queue_ack_limiting(VQ0) ->
%% quarter the allowed duration
VQ6 = check_variable_queue_status(
- rabbit_variable_queue:set_ram_duration_target(Duration / 4, VQ5),
+ rabbit_variable_queue:set_ram_duration_target(0, VQ5),
[{len, Len div 2},
- {target_ram_msg_count, Len div 8},
- {ram_msg_count, Len div 8},
+ {target_ram_msg_count, 0},
+ {ram_msg_count, 0},
{ram_ack_count, 0}]),
VQ6.