Fix unit test
We currently have no check for concurrently opening the same fractal_btree; we probably need to implement a simple locking mechanism.
This commit is contained in:
parent
0064b0405e
commit
07c4df29ec
1 changed files with 2 additions and 1 deletions
|
@ -132,7 +132,8 @@ prop_dict_agree() ->
|
||||||
test_tree_simple_1() ->
|
test_tree_simple_1() ->
|
||||||
{ok, Tree} = fractal_btree:open("simple"),
|
{ok, Tree} = fractal_btree:open("simple"),
|
||||||
ok = fractal_btree:put(Tree, <<>>, <<"data", 77:128>>),
|
ok = fractal_btree:put(Tree, <<>>, <<"data", 77:128>>),
|
||||||
{ok, <<"data", 77:128>>} = fractal_btree:lookup(Tree, <<>>).
|
{ok, <<"data", 77:128>>} = fractal_btree:lookup(Tree, <<>>),
|
||||||
|
ok = fractal_btree:close(Tree).
|
||||||
|
|
||||||
|
|
||||||
test_tree() ->
|
test_tree() ->
|
||||||
|
|
Loading…
Reference in a new issue