riak_test/intercepts/riak_core_connection_intercepts.erl
bsparrow435 c89de8dac9 Address PR comments
Changed intercept to explicitly return `{error, econnrefused}`. Moved
helper functions to `repl_util` and added a new helper to distinguish
between disconnects on `cluster_by_name` and `cluster_by_address`
connections.

Added asserts to all wait_for functions.
2014-06-04 19:51:21 -04:00

12 lines
320 B
Erlang

-module(riak_core_connection_intercepts).
-compile(export_all).
-include("intercept.hrl").
-define(M, riak_core_connection_orig).
%% @doc Modify port to cause connection error
return_econnrefused(Addr,_ClientSpec) ->
?I_INFO("Returning econnrefused for all connections to: ~p",[Addr]),
{error, econnrefused}.