Skip to content

Commit

Permalink
Update test specs (#114)
Browse files Browse the repository at this point in the history
* Update test specs

* Correct timeout change

A timeout of 5s will expose issues e.g. martinsumner/leveled#420
  • Loading branch information
martinsumner committed Nov 13, 2023
1 parent 7d6b8ae commit 99f54af
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/end_to_end/mock_kv_vnode.erl
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,15 @@


-type r_object() :: #r_object{}.
-type preflist_fun() :: null|fun().
-type preflist_fun() :: null|fun((term(), term()) -> non_neg_integer()).
-type fold_objects_fun() :: fun((term(), term(), term(), term()) -> term()).
-type folder() :: fun(() -> term()).

%%%============================================================================
%%% API
%%%============================================================================

-spec open(list(), atom(), list(tuple()), fun()|null) -> {ok, pid()}.
-spec open(list(), atom(), list(tuple()), preflist_fun()|null) -> {ok, pid()}.
%% @doc
%% Open a mock vnode
open(Path, AAEType, IndexNs, PreflistFun) ->
Expand Down Expand Up @@ -140,8 +142,8 @@ rehash(Vnode, Bucket, Key, IndexN) ->

-spec fold_aae(pid(),
aae_keystore:range_limiter(), aae_keystore:segment_limiter(),
fun(), any(),
list(aae_keystore:value_element())) -> {async, fun()}.
fold_objects_fun(), any(),
list(aae_keystore:value_element())) -> {async, folder()}.
%% @doc
%% Fold over the heads in the aae store (which may be the key store when
%% running in native mode)
Expand Down

0 comments on commit 99f54af

Please sign in to comment.