diff --git a/src/leveled_imanifest.erl b/src/leveled_imanifest.erl index 5243c99..3583b2b 100644 --- a/src/leveled_imanifest.erl +++ b/src/leveled_imanifest.erl @@ -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. \ No newline at end of file