Assert nursery file is gone after inject
This commit is contained in:
parent
22e59b0fcc
commit
51f1c13650
1 changed files with 1 additions and 0 deletions
|
@ -156,6 +156,7 @@ flush_nursery(State=#state{nursery=Tree, top=Top}) ->
|
|||
gb_trees:to_list(Tree)),
|
||||
ok = fractal_btree_writer:close(BT),
|
||||
ok = fractal_btree_level:inject(Top, FileName),
|
||||
{error, enoent} = file:read_file_info(FileName),
|
||||
{ok, State#state{ nursery=gb_trees:empty() } };
|
||||
true ->
|
||||
{ok, State}
|
||||
|
|
Loading…
Reference in a new issue