diff options
| author | Michael Klishin <michael@novemberain.com> | 2017-01-04 20:55:01 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-04 20:55:01 +0800 |
| commit | af06a3cc6c5d80448cf0831753f2c5b54576b18b (patch) | |
| tree | df62fdbbd54cc4d49ef10cab078863bbc54d2d4e /test | |
| parent | 8acf85bebac7a69afe5e19c4c522434393a2b8ec (diff) | |
| parent | 00ad4cd57ca54ae8d5b40b01221f7eb32dcae615 (diff) | |
| download | rabbitmq-server-git-af06a3cc6c5d80448cf0831753f2c5b54576b18b.tar.gz | |
Merge pull request #1072 from rabbitmq/rabbitmq-server-964
Configure memory reduction for all queue types
Diffstat (limited to 'test')
| -rw-r--r-- | test/unit_inbroker_SUITE.erl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/unit_inbroker_SUITE.erl b/test/unit_inbroker_SUITE.erl index f80f83c391..44d19d0601 100644 --- a/test/unit_inbroker_SUITE.erl +++ b/test/unit_inbroker_SUITE.erl @@ -250,9 +250,21 @@ orelse Group =:= backing_queue_embed_limit_1024 -> end_per_group1(_, Config) -> Config. +init_per_testcase(Testcase, Config) when Testcase == variable_queue_requeue; + Testcase == variable_queue_fold -> + ok = rabbit_ct_broker_helpers:rpc( + Config, 0, application, set_env, + [rabbit, queue_explicit_gc_run_operation_threshold, 0]), + rabbit_ct_helpers:testcase_started(Config, Testcase); init_per_testcase(Testcase, Config) -> rabbit_ct_helpers:testcase_started(Config, Testcase). +end_per_testcase(Testcase, Config) when Testcase == variable_queue_requeue; + Testcase == variable_queue_fold -> + ok = rabbit_ct_broker_helpers:rpc( + Config, 0, application, set_env, + [rabbit, queue_explicit_gc_run_operation_threshold, 1000]), + rabbit_ct_helpers:testcase_finished(Config, Testcase); end_per_testcase(Testcase, Config) -> rabbit_ct_helpers:testcase_finished(Config, Testcase). |
