Simpliy test assertion
This commit is contained in:
parent
5b5b4a3a29
commit
400202e38d
1 changed files with 4 additions and 10 deletions
|
@ -1020,16 +1020,10 @@ compact_journal_test() ->
|
||||||
5000),
|
5000),
|
||||||
timer:sleep(1000),
|
timer:sleep(1000),
|
||||||
CompactedManifest2 = ink_getmanifest(Ink1),
|
CompactedManifest2 = ink_getmanifest(Ink1),
|
||||||
R = lists:foldl(fun({_SQN, FN, _P, _LK}, Acc) ->
|
lists:foreach(fun({_SQN, FN, _P, _LK}) ->
|
||||||
case string:str(FN, "post_compact") of
|
?assertMatch(0, string:str(FN, "post_compact"))
|
||||||
N when N > 0 ->
|
end,
|
||||||
true;
|
CompactedManifest2),
|
||||||
0 ->
|
|
||||||
Acc
|
|
||||||
end end,
|
|
||||||
false,
|
|
||||||
CompactedManifest2),
|
|
||||||
?assertMatch(false, R),
|
|
||||||
?assertMatch(2, length(CompactedManifest2)),
|
?assertMatch(2, length(CompactedManifest2)),
|
||||||
ink_close(Ink1),
|
ink_close(Ink1),
|
||||||
clean_testdir(RootPath).
|
clean_testdir(RootPath).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue