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:
Kresten Krab Thorup 2012-01-07 13:56:14 +01:00
parent 0064b0405e
commit 07c4df29ec

View file

@ -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() ->