diff options
| author | Gerhard Lazu <gerhard@lazu.co.uk> | 2017-06-20 12:41:33 +0100 |
|---|---|---|
| committer | Gerhard Lazu <gerhard@lazu.co.uk> | 2017-06-20 12:41:33 +0100 |
| commit | 74c3758b1faff3d7421466ecf4e8885d831edefe (patch) | |
| tree | 6e2a215d6ce13927fda353b981a08faa263095a7 /test | |
| parent | 085bacfe5a843eba507b927c9c616212f3e5487e (diff) | |
| download | rabbitmq-server-git-74c3758b1faff3d7421466ecf4e8885d831edefe.tar.gz | |
Improve naming for test iterations & properties which are testedrabbitmq_v3_6_11_milestone2
[#146794925]
Diffstat (limited to 'test')
| -rw-r--r-- | test/term_to_binary_compat_prop_SUITE.erl | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/test/term_to_binary_compat_prop_SUITE.erl b/test/term_to_binary_compat_prop_SUITE.erl index 0c604f8994..69aa63433d 100644 --- a/test/term_to_binary_compat_prop_SUITE.erl +++ b/test/term_to_binary_compat_prop_SUITE.erl @@ -23,6 +23,8 @@ -include_lib("common_test/include/ct.hrl"). -include_lib("proper/include/proper.hrl"). +-define(ITERATIONS_TO_RUN_UNTIL_CONFIDENT, 10000). + all() -> [ pre_3_6_11_works, @@ -48,8 +50,9 @@ init_per_testcase(Testcase, Config) -> %% If this test fails - the erlang version is not supported in %% RabbitMQ-3.6.10 and earlier. pre_3_6_11_works(Config) -> - Fun = fun () -> prop_pre_3_6_11_works(Config) end, - rabbit_ct_proper_helpers:run_proper(Fun, [], 50000). + Property = fun () -> prop_pre_3_6_11_works(Config) end, + rabbit_ct_proper_helpers:run_proper(Property, [], + ?ITERATIONS_TO_RUN_UNTIL_CONFIDENT). prop_pre_3_6_11_works(_Config) -> ?FORALL(Term, any(), @@ -60,8 +63,9 @@ prop_pre_3_6_11_works(_Config) -> end). term_to_binary_latin_atom(Config) -> - Fun = fun () -> prop_term_to_binary_latin_atom(Config) end, - rabbit_ct_proper_helpers:run_proper(Fun, [], 10000). + Property = fun () -> prop_term_to_binary_latin_atom(Config) end, + rabbit_ct_proper_helpers:run_proper(Property, [], + ?ITERATIONS_TO_RUN_UNTIL_CONFIDENT). prop_term_to_binary_latin_atom(_Config) -> ?FORALL(LatinString, list(integer(0, 255)), @@ -69,12 +73,14 @@ prop_term_to_binary_latin_atom(_Config) -> Length = length(LatinString), Atom = list_to_atom(LatinString), Binary = list_to_binary(LatinString), - <<131,100, Length:16, Binary/binary>> =:= term_to_binary_compat:term_to_binary_1(Atom) + <<131,100, Length:16, Binary/binary>> =:= + term_to_binary_compat:term_to_binary_1(Atom) end). queue_name_to_binary(Config) -> - Fun = fun () -> prop_queue_name_to_binary(Config) end, - rabbit_ct_proper_helpers:run_proper(Fun, [], 10000). + Property = fun () -> prop_queue_name_to_binary(Config) end, + rabbit_ct_proper_helpers:run_proper(Property, [], + ?ITERATIONS_TO_RUN_UNTIL_CONFIDENT). prop_queue_name_to_binary(_Config) -> |
