mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 08:35:22 +00:00
Fail with the bare atom fail
`riak_test_runner` does not support tagged tuples for failures. Fix verify_snmp_repl module so that it returns the bare atom `fail` when it fails, and write more detailed error messages to the log instead.
This commit is contained in:
parent
adbaa99da8
commit
9ee856546a
@ -64,11 +64,18 @@ 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]),
|
||||
fail;
|
||||
X ->
|
||||
lager:error("Unknown failure in wait_for_snmp_stat_poller: ~p~n", [X]),
|
||||
fail
|
||||
after
|
||||
1000 -> {fail, timeout}
|
||||
1000 ->
|
||||
lager:error("Timeout failure in wait_for_snmp_stat_poller."),
|
||||
fail
|
||||
end.
|
||||
|
||||
make_nodes(NodeCount, ClusterCount, Config) ->
|
||||
|
Loading…
Reference in New Issue
Block a user