Skip to content

Commit 74c3758

Browse files
committed
Improve naming for test iterations & properties which are tested
[#146794925]
1 parent 085bacf commit 74c3758

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

test/term_to_binary_compat_prop_SUITE.erl

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
-include_lib("common_test/include/ct.hrl").
2424
-include_lib("proper/include/proper.hrl").
2525

26+
-define(ITERATIONS_TO_RUN_UNTIL_CONFIDENT, 10000).
27+
2628
all() ->
2729
[
2830
pre_3_6_11_works,
@@ -48,8 +50,9 @@ init_per_testcase(Testcase, Config) ->
4850
%% If this test fails - the erlang version is not supported in
4951
%% RabbitMQ-3.6.10 and earlier.
5052
pre_3_6_11_works(Config) ->
51-
Fun = fun () -> prop_pre_3_6_11_works(Config) end,
52-
rabbit_ct_proper_helpers:run_proper(Fun, [], 50000).
53+
Property = fun () -> prop_pre_3_6_11_works(Config) end,
54+
rabbit_ct_proper_helpers:run_proper(Property, [],
55+
?ITERATIONS_TO_RUN_UNTIL_CONFIDENT).
5356

5457
prop_pre_3_6_11_works(_Config) ->
5558
?FORALL(Term, any(),
@@ -60,21 +63,24 @@ prop_pre_3_6_11_works(_Config) ->
6063
end).
6164

6265
term_to_binary_latin_atom(Config) ->
63-
Fun = fun () -> prop_term_to_binary_latin_atom(Config) end,
64-
rabbit_ct_proper_helpers:run_proper(Fun, [], 10000).
66+
Property = fun () -> prop_term_to_binary_latin_atom(Config) end,
67+
rabbit_ct_proper_helpers:run_proper(Property, [],
68+
?ITERATIONS_TO_RUN_UNTIL_CONFIDENT).
6569

6670
prop_term_to_binary_latin_atom(_Config) ->
6771
?FORALL(LatinString, list(integer(0, 255)),
6872
begin
6973
Length = length(LatinString),
7074
Atom = list_to_atom(LatinString),
7175
Binary = list_to_binary(LatinString),
72-
<<131,100, Length:16, Binary/binary>> =:= term_to_binary_compat:term_to_binary_1(Atom)
76+
<<131,100, Length:16, Binary/binary>> =:=
77+
term_to_binary_compat:term_to_binary_1(Atom)
7378
end).
7479

7580
queue_name_to_binary(Config) ->
76-
Fun = fun () -> prop_queue_name_to_binary(Config) end,
77-
rabbit_ct_proper_helpers:run_proper(Fun, [], 10000).
81+
Property = fun () -> prop_queue_name_to_binary(Config) end,
82+
rabbit_ct_proper_helpers:run_proper(Property, [],
83+
?ITERATIONS_TO_RUN_UNTIL_CONFIDENT).
7884

7985

8086
prop_queue_name_to_binary(_Config) ->

0 commit comments

Comments
 (0)