iManifest -test empty journal

This commit is contained in:
martinsumner 2017-02-26 21:13:07 +00:00
parent 41e5686a66
commit 100d675472

View file

@ -219,5 +219,11 @@ buildrandomfashion_test() ->
test_testmanifest(Man2),
?assertMatch(ManL0, to_list(Man2)).
empty_active_journal_test() ->
Path = "../test/journal/journal_files/",
ok = filelib:ensure_dir(Path),
{ok, ActJ} = leveled_cdb:cdb_open_writer(Path ++ "test_emptyactive_file.pnd"),
?assertMatch([], generate_entry(ActJ)),
?assertMatch(ok, file:delete(Path ++ "test_emptyactive_file.cdb")).
-endif.