diff options
| author | Rob Harrop <rob@rabbitmq.com> | 2010-11-05 12:54:03 +0000 |
|---|---|---|
| committer | Rob Harrop <rob@rabbitmq.com> | 2010-11-05 12:54:03 +0000 |
| commit | e2a4f48436ed3e15bd99179a45cdb54baf6af7ee (patch) | |
| tree | f9e40c207ee786e38779b7518355f848f85f4812 /src | |
| parent | 6335bbeb1f39d4a22dedd789600c2598849157ec (diff) | |
| download | rabbitmq-server-git-e2a4f48436ed3e15bd99179a45cdb54baf6af7ee.tar.gz | |
Reworked to test to be more predictable
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_tests.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl index eecc27b325..4f5437040d 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. |
