1010
1111all () ->
1212 [
13- {group , api },
14- {group , properties }
13+ {group , properties },
14+ {group , api }
1515 ].
1616
1717groups () ->
@@ -65,6 +65,7 @@ groups() ->
6565 ].
6666
6767init_per_suite (Config ) ->
68+ meck :new (amoc_throttle_config , [passthrough , non_strict , no_link ]),
6869 application :ensure_all_started (amoc ),
6970 amoc_cluster :set_master_node (node ()),
7071 TelemetryEvents = [[amoc , throttle , Event ] || Event <- [init , rate , request , execute , process ]],
@@ -74,17 +75,17 @@ init_per_suite(Config) ->
7475end_per_suite (_ ) ->
7576 application :stop (amoc ),
7677 telemetry_helpers :stop (),
78+ meck :unload (amoc_throttle_config );
7779 ok .
7880
7981init_per_group (properties , Config ) ->
80- meck :new (amoc_throttle_config , [passthrough , non_strict , no_link ]),
8182 meck :expect (amoc_throttle_config , no_of_processes , [], 100 ),
8283 Config ;
8384init_per_group (_ , Config ) ->
8485 Config .
8586
8687end_per_group (properties , _Config ) ->
87- meck :unload (amoc_throttle_config );
88+ meck :delete (amoc_throttle_config , no_of_processes , 0 );
8889end_per_group (_ , _Config ) ->
8990 ok .
9091
0 commit comments