summaryrefslogtreecommitdiff
path: root/src/rabbit_tests.erl
diff options
context:
space:
mode:
authorFrancesco Mazzoli <francesco@rabbitmq.com>2012-04-19 18:42:40 +0100
committerFrancesco Mazzoli <francesco@rabbitmq.com>2012-04-19 18:42:40 +0100
commit01aa6010d87a4e4870360d5523fd05c58f1d1990 (patch)
tree5c2a3d46c24daf19ed6ee1dc84f63ed70ebd58d0 /src/rabbit_tests.erl
parentf1bf76e40adb74134c113abaddf424ec895ee864 (diff)
downloadrabbitmq-server-01aa6010d87a4e4870360d5523fd05c58f1d1990.tar.gz
Fix rabbit_tests - only get the state after calling bq:dropwhile.
Diffstat (limited to 'src/rabbit_tests.erl')
-rw-r--r--src/rabbit_tests.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl
index 3e85e3d5..04ee6ef2 100644
--- a/src/rabbit_tests.erl
+++ b/src/rabbit_tests.erl
@@ -2412,7 +2412,9 @@ test_dropwhile_varying_ram_duration(VQ0) ->
fun(_) -> false end, false, VQ2),
VQ4 = rabbit_variable_queue:set_ram_duration_target(infinity, VQ3),
VQ5 = variable_queue_publish(false, 1, VQ4),
- rabbit_variable_queue:dropwhile(fun(_) -> false end, false, VQ5).
+ {undefined, VQ6} =
+ rabbit_variable_queue:dropwhile(fun(_) -> false end, false, VQ5),
+ VQ6.
test_variable_queue_dynamic_duration_change(VQ0) ->
SegmentSize = rabbit_queue_index:next_segment_boundary(0),