mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 16:45:29 +00:00
Merge pull request #852 from basho/bugfix/verify-snmp-repl-fail-appropriately
Fail by crashing test process instead of returning a tagged tuple
This commit is contained in:
commit
b8dfb15d14
@ -57,6 +57,7 @@ intercept_riak_snmp_stat_poller(Node) ->
|
||||
RiakTestProcess ! pass
|
||||
catch
|
||||
Exception:Reason ->
|
||||
lager:error("Failure in riak_snmp_stat_poller_orig:set_rows_orig: ~p~n", [{Exception, Reason}]),
|
||||
RiakTestProcess ! {fail, {Exception, Reason}},
|
||||
error({Exception, Reason})
|
||||
end
|
||||
@ -64,11 +65,19 @@ intercept_riak_snmp_stat_poller(Node) ->
|
||||
|
||||
wait_for_snmp_stat_poller() ->
|
||||
receive
|
||||
pass -> pass;
|
||||
{fail, Reason} -> {fail, Reason};
|
||||
X -> {fail, {unknown, X}}
|
||||
pass ->
|
||||
pass;
|
||||
{fail, Reason} ->
|
||||
lager:error("Failure in wait_for_snmp_stat_poller: ~p~n", [Reason]),
|
||||
error({fail, Reason});
|
||||
X ->
|
||||
lager:error("Unknown failure in wait_for_snmp_stat_poller: ~p~n", [X]),
|
||||
error(X)
|
||||
after
|
||||
1000 -> {fail, timeout}
|
||||
1000 ->
|
||||
Message = "Timeout waiting for snmp_stat_poller.",
|
||||
lager:error(Message),
|
||||
error({timeout, Message})
|
||||
end.
|
||||
|
||||
make_nodes(NodeCount, ClusterCount, Config) ->
|
||||
|
Loading…
Reference in New Issue
Block a user