Test timeouts
So that coverage testing will run.
This commit is contained in:
parent
52ca0e4b6c
commit
fd84e4f608
4 changed files with 15 additions and 9 deletions
|
@ -351,7 +351,11 @@ compare_method_test() ->
|
|||
[timer:now_diff(os:timestamp(), SWb), Sz1]),
|
||||
?assertMatch(Sz0, Sz1).
|
||||
|
||||
with_index_test() ->
|
||||
with_index_test_() ->
|
||||
% Otherwise this test may timeout when run with coverage enabled
|
||||
{timeout, 60, fun with_index_test2/0}.
|
||||
|
||||
with_index_test2() ->
|
||||
IndexPrepareFun =
|
||||
fun({K, _V}, Acc) ->
|
||||
H = leveled_codec:magic_hash(K),
|
||||
|
|
|
@ -356,9 +356,11 @@ merge_bysize_medium_test() ->
|
|||
merge_bysize_large_test() ->
|
||||
merge_test_withsize(large).
|
||||
|
||||
% merge_bysize_xlarge_test() ->
|
||||
% merge_test_withsize(xlarge).
|
||||
% timmeout on cover test - so commented
|
||||
merge_bysize_xlarge_test_() ->
|
||||
{timeout, 60, fun merge_bysize_xlarge_test2/0}.
|
||||
|
||||
merge_bysize_xlarge_test2() ->
|
||||
merge_test_withsize(xlarge).
|
||||
|
||||
merge_test_withsize(Size) ->
|
||||
HashFun = fun(_K, V) -> erlang:phash2(V) end,
|
||||
|
|
|
@ -123,11 +123,11 @@ journal_compaction(_Config) ->
|
|||
ChkList1 = lists:sublist(lists:sort(ObjList1), 10000),
|
||||
testutil:check_forlist(Bookie1, ChkList1),
|
||||
testutil:check_forobject(Bookie1, TestObject),
|
||||
{B2, K2, V2, Spec2, MD} = {"Bucket1",
|
||||
"Key1",
|
||||
"Value1",
|
||||
{B2, K2, V2, Spec2, MD} = {"Bucket2",
|
||||
"Key2",
|
||||
"Value2",
|
||||
[],
|
||||
[{"MDK1", "MDV1"}]},
|
||||
[{"MDK2", "MDV2"}]},
|
||||
{TestObject2, TestSpec2} = testutil:generate_testobject(B2, K2,
|
||||
V2, Spec2, MD),
|
||||
ok = testutil:book_riakput(Bookie1, TestObject2, TestSpec2),
|
||||
|
|
|
@ -502,7 +502,7 @@ check_indexed_objects(Book, B, KSpecL, V) ->
|
|||
{fun foldkeysfun/3, []},
|
||||
{"idx1_bin",
|
||||
"0",
|
||||
"~"},
|
||||
"|"},
|
||||
?RETURN_TERMS}),
|
||||
SW = os:timestamp(),
|
||||
{async, Fldr} = R,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue