iManifest -test empty journal
This commit is contained in:
parent
41e5686a66
commit
100d675472
1 changed files with 6 additions and 0 deletions
|
@ -219,5 +219,11 @@ buildrandomfashion_test() ->
|
||||||
test_testmanifest(Man2),
|
test_testmanifest(Man2),
|
||||||
?assertMatch(ManL0, to_list(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.
|
-endif.
|
Loading…
Add table
Add a link
Reference in a new issue