Execute NIF calls on non-scheduler threads asynchronously #6
1 changed files with 20 additions and 20 deletions
|
@ -878,7 +878,7 @@ prop_put_delete() ->
|
||||||
?assertMatch(true, lists:suffix("wterl/.eunit", CWD)),
|
?assertMatch(true, lists:suffix("wterl/.eunit", CWD)),
|
||||||
?cmd("rm -rf "++DataDir),
|
?cmd("rm -rf "++DataDir),
|
||||||
ok = filelib:ensure_dir(filename:join([DataDir, "x"])),
|
ok = filelib:ensure_dir(filename:join([DataDir, "x"])),
|
||||||
{ok, Conn} = wterl:connection_open(DataDir, [{create,true}]),
|
{ok, ConnRef} = wterl:connection_open(DataDir, [{create,true}]),
|
||||||
try
|
try
|
||||||
wterl:create(ConnRef, Table),
|
wterl:create(ConnRef, Table),
|
||||||
Model = apply_kv_ops(Ops, ConnRef, Table, []),
|
Model = apply_kv_ops(Ops, ConnRef, Table, []),
|
||||||
|
@ -892,7 +892,7 @@ prop_put_delete() ->
|
||||||
lists:map(F, Model),
|
lists:map(F, Model),
|
||||||
true
|
true
|
||||||
after
|
after
|
||||||
wterl:connection_close(Conn)
|
wterl:connection_close(ConnRef)
|
||||||
end
|
end
|
||||||
end)).
|
end)).
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue