mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 16:45:29 +00:00
c89de8dac9
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.
12 lines
320 B
Erlang
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}.
|