Inker test for pending manifest
Should ignore the corrupted pending manifest file
This commit is contained in:
parent
72b9b35dac
commit
ad9c886b65
1 changed files with 6 additions and 3 deletions
|
@ -659,9 +659,7 @@ sequencenumbers_fromfilenames(Filenames, Regex, IntName) ->
|
|||
nomatch ->
|
||||
Acc;
|
||||
{match, [Int]} when is_list(Int) ->
|
||||
Acc ++ [list_to_integer(Int)];
|
||||
_ ->
|
||||
Acc
|
||||
Acc ++ [list_to_integer(Int)]
|
||||
end end,
|
||||
[],
|
||||
Filenames).
|
||||
|
@ -898,6 +896,11 @@ empty_manifest_test() ->
|
|||
timer:sleep(1000),
|
||||
?assertMatch(1, length(ink_getmanifest(Ink1))),
|
||||
ok = ink_close(Ink1),
|
||||
|
||||
% Add pending manifest to be ignored
|
||||
FN = filepath(RootPath, manifest_dir) ++ "999.pnd",
|
||||
ok = file:write_file(FN, term_to_binary("Hello")),
|
||||
|
||||
{ok, Ink2} = ink_start(#inker_options{root_path=RootPath,
|
||||
cdb_options=CDBopts}),
|
||||
?assertMatch(not_present, ink_fetch(Ink2, "Key1", 1)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue