Clear dialyzer warnings

This commit is contained in:
martinsumner 2017-02-27 20:23:36 +00:00
parent fce7cbd2ef
commit 35b6e16590
4 changed files with 6 additions and 5 deletions

View file

@ -1405,7 +1405,7 @@ foldobjects_vs_hashtree_test() ->
longrunning_test() ->
SW = os:timestamp(),
timer:sleep(100),
?assertMatch(ok, maybe_longrunning(SW, put)).
ok = maybe_longrunning(SW, put).
coverage_cheat_test() ->
{noreply, _State0} = handle_info(timeout, #state{}),

View file

@ -1116,8 +1116,8 @@ clean_dir_test() ->
% Pointless gesture to test coverage
RootPath = "../test/ledger",
?assertMatch(ok, file:write_file(RootPath ++ "/test.bob", "hello")),
?assertMatch(ok, clean_subdir(RootPath ++ "/test.bob")),
?assertMatch(ok, file:delete(RootPath ++ "/test.bob")).
ok = clean_subdir(RootPath ++ "/test.bob"),
ok = file:delete(RootPath ++ "/test.bob").
simple_server_test() ->
RootPath = "../test/ledger",