diff options
| author | Michael Klishin <mklishin@pivotal.io> | 2015-09-17 16:18:24 +0300 |
|---|---|---|
| committer | Michael Klishin <mklishin@pivotal.io> | 2015-09-17 16:18:24 +0300 |
| commit | e8446a21d053445aaa856e300960656dab9ada66 (patch) | |
| tree | 1257235e3153f7f14dbd2915df76c0e121426577 /test/src | |
| parent | 76f9565ecc25357d894508f61e1d2864176de527 (diff) | |
| parent | 0c9bf69dc9d96cfe4b100c289e7ef259caa74253 (diff) | |
| download | rabbitmq-server-git-e8446a21d053445aaa856e300960656dab9ada66.tar.gz | |
Merge branch 'stable'
Make credit flow setting a tuple, per discussion with @videlalvaro.
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/credit_flow_test.erl | 7 | ||||
| -rw-r--r-- | test/src/rabbit_tests.erl | 1 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/src/credit_flow_test.erl b/test/src/credit_flow_test.erl index db014888eb..4910da3db3 100644 --- a/test/src/credit_flow_test.erl +++ b/test/src/credit_flow_test.erl @@ -22,12 +22,11 @@ test_credit_flow_settings() -> %% default values passed = test_proc(200, 50), - application:set_env(rabbit, credit_flow_initial_credit, 100), - application:set_env(rabbit, credit_flow_more_credit_after, 20), + application:set_env(rabbit, credit_flow_default_credit, {100, 20}), passed = test_proc(100, 20), - application:unset_env(rabbit, credit_flow_initial_credit), - application:unset_env(rabbit, credit_flow_more_credit_after), + application:unset_env(rabbit, credit_flow_default_credit), + % back to defaults passed = test_proc(200, 50), passed. diff --git a/test/src/rabbit_tests.erl b/test/src/rabbit_tests.erl index 188222057b..6157b483e0 100644 --- a/test/src/rabbit_tests.erl +++ b/test/src/rabbit_tests.erl @@ -92,6 +92,7 @@ all_tests0() -> passed = vm_memory_monitor_tests:all_tests(), passed = credit_flow_test:test_credit_flow_settings(), passed = on_disk_store_tunable_parameter_validation_test:test_msg_store_parameter_validation(), + passed = credit_flow_test:test_credit_flow_settings(), passed. do_if_secondary_node(Up, Down) -> |
