@@ -131,7 +131,6 @@ reset() ->
131131
132132init_per_testcase (_TC , Config ) ->
133133 reset (),
134- meck :new (rabbit_log , []),
135134 meck :new (rabbit_peer_discovery_httpc , [passthrough ]),
136135 meck :new (rabbit_nodes , [passthrough ]),
137136 Config .
@@ -508,7 +507,6 @@ list_nodes_return_value_nodes_in_warning_state_filtered_out_test(_Config) ->
508507 ? assert (meck :validate (rabbit_peer_discovery_httpc )).
509508
510509registration_with_all_default_values_test (_Config ) ->
511- meck :expect (rabbit_log , debug , fun (_Message ) -> ok end ),
512510 meck :expect (rabbit_peer_discovery_httpc , put ,
513511 fun (Scheme , Host , Port , Path , Args , Headers , _HttpOpts , Body ) ->
514512 ? assertEqual (" http" , Scheme ),
@@ -523,7 +521,6 @@ registration_with_all_default_values_test(_Config) ->
523521 {ok , []}
524522 end ),
525523 ? assertEqual (ok , rabbit_peer_discovery_consul :register ()),
526- ? assert (meck :validate (rabbit_log )),
527524 ? assert (meck :validate (rabbit_peer_discovery_httpc )).
528525
529526registration_with_cluster_name_test (_Config ) ->
@@ -760,16 +757,12 @@ health_check_with_acl_token_test(_Config) ->
760757 ? assert (meck :validate (rabbit_peer_discovery_httpc )).
761758
762759health_check_error_handling_test (_Config ) ->
763- meck :expect (rabbit_log , error , fun (_Message , _Args ) ->
764- ok
765- end ),
766760 meck :expect (rabbit_peer_discovery_httpc , put ,
767761 fun (_Scheme , _Host , _Port , _Path , _Args , _Headers , _HttpOpts , _Body ) ->
768762 {error , " testing" }
769763 end ),
770764 ? assertEqual (ok , rabbit_peer_discovery_consul :send_health_check_pass ()),
771- ? assert (meck :validate (rabbit_peer_discovery_httpc )),
772- ? assert (meck :validate (rabbit_log )).
765+ ? assert (meck :validate (rabbit_peer_discovery_httpc )).
773766
774767
775768unregistration_with_all_defaults_test (_Config ) ->
0 commit comments