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

@ -30,7 +30,7 @@
-record(manifest_entry, -record(manifest_entry,
{start_key :: tuple(), {start_key :: tuple(),
end_key :: tuple(), end_key :: tuple(),
owner :: pid(), owner :: pid()|list(),
filename :: string()}). filename :: string()}).
-record(cdb_options, -record(cdb_options,
@ -55,7 +55,7 @@
max_inmemory_tablesize :: integer(), max_inmemory_tablesize :: integer(),
start_snapshot = false :: boolean(), start_snapshot = false :: boolean(),
source_penciller :: pid(), source_penciller :: pid(),
levelzero_cointoss = false :: boolean}). levelzero_cointoss = false :: boolean()}).
-record(iclerk_options, -record(iclerk_options,
{inker :: pid(), {inker :: pid(),

1
rebar.lock Normal file
View file

@ -0,0 +1 @@
[].

View file

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

View file

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