Skip to content
Browse files

Misc. dialyzer warning fixes

  • Loading branch information...
1 parent 8af1eda commit ff20d797a207efbb490dab6655cb94374f3049e2 @norton norton committed
Showing with 8 additions and 8 deletions.
  1. +3 −3 test/eunit/redis_plugin_tests.erl
  2. +5 −5 test/qc/redis_proxy_tests.erl
View
6 test/eunit/redis_plugin_tests.erl
@@ -73,14 +73,14 @@ all_actual_tests_(Host,Port,Proto) ->
%%%----------------------------------------------------------------------
test_setup(App) ->
- application:start(sasl),
- application:stop(App),
+ _ = application:start(sasl),
+ _ = application:stop(App),
true = code:add_patha("../test/eunit"),
ok = application:start(App),
App.
test_teardown(App) ->
- application:stop(App),
+ _ = application:stop(App),
true = code:del_path("../test/eunit"),
ok.
View
10 test/qc/redis_proxy_tests.erl
@@ -54,7 +54,7 @@ qc_run(NumTests) ->
qc_run(NumTests, Options) ->
%% close port (previous tests)
- setup(),
+ ok = setup(),
%% check for running redis-server
case gen_tcp:listen(6379, []) of
{ok,Port} ->
@@ -66,7 +66,7 @@ qc_run(NumTests, Options) ->
test_teardown()
end;
{error,eaddrinuse} ->
- os:cmd("killall -9 redis-server"),
+ _ = os:cmd("killall -9 redis-server"),
qc_run(NumTests, Options)
end.
@@ -80,8 +80,8 @@ qc_counterexample(Options, CounterExample) ->
?QC:check(qc_ubf:qc_prop(?MODULE, [?REDIS_PROXY], Options), CounterExample).
setup() ->
- redis_server_teardown(),
- redis_server_setup(),
+ {ok, _} = redis_server_teardown(),
+ {ok, _} = redis_server_setup(),
ok.
setup(_) ->
@@ -151,7 +151,7 @@ redis_server_reset() ->
redis_server_init(Parent) ->
%% remove data
- os:cmd("rm -f /usr/local/var/db/redis/*"),
+ _ = os:cmd("rm -f /usr/local/var/db/redis/*"),
%% open port
Options = [{args, ["/usr/local/etc/redis.conf"]}, binary, stderr_to_stdout, {line,1024}],
Port = open_port({spawn_executable, "/usr/local/bin/redis-server"}, Options),

0 comments on commit ff20d79

Please sign in to comment.
Something went wrong with that request. Please try again.