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]),
|
[timer:now_diff(os:timestamp(), SWb), Sz1]),
|
||||||
?assertMatch(Sz0, 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 =
|
IndexPrepareFun =
|
||||||
fun({K, _V}, Acc) ->
|
fun({K, _V}, Acc) ->
|
||||||
H = leveled_codec:magic_hash(K),
|
H = leveled_codec:magic_hash(K),
|
||||||
|
|
|
@ -356,9 +356,11 @@ merge_bysize_medium_test() ->
|
||||||
merge_bysize_large_test() ->
|
merge_bysize_large_test() ->
|
||||||
merge_test_withsize(large).
|
merge_test_withsize(large).
|
||||||
|
|
||||||
% merge_bysize_xlarge_test() ->
|
merge_bysize_xlarge_test_() ->
|
||||||
% merge_test_withsize(xlarge).
|
{timeout, 60, fun merge_bysize_xlarge_test2/0}.
|
||||||
% timmeout on cover test - so commented
|
|
||||||
|
merge_bysize_xlarge_test2() ->
|
||||||
|
merge_test_withsize(xlarge).
|
||||||
|
|
||||||
merge_test_withsize(Size) ->
|
merge_test_withsize(Size) ->
|
||||||
HashFun = fun(_K, V) -> erlang:phash2(V) end,
|
HashFun = fun(_K, V) -> erlang:phash2(V) end,
|
||||||
|
|
|
@ -123,11 +123,11 @@ journal_compaction(_Config) ->
|
||||||
ChkList1 = lists:sublist(lists:sort(ObjList1), 10000),
|
ChkList1 = lists:sublist(lists:sort(ObjList1), 10000),
|
||||||
testutil:check_forlist(Bookie1, ChkList1),
|
testutil:check_forlist(Bookie1, ChkList1),
|
||||||
testutil:check_forobject(Bookie1, TestObject),
|
testutil:check_forobject(Bookie1, TestObject),
|
||||||
{B2, K2, V2, Spec2, MD} = {"Bucket1",
|
{B2, K2, V2, Spec2, MD} = {"Bucket2",
|
||||||
"Key1",
|
"Key2",
|
||||||
"Value1",
|
"Value2",
|
||||||
[],
|
[],
|
||||||
[{"MDK1", "MDV1"}]},
|
[{"MDK2", "MDV2"}]},
|
||||||
{TestObject2, TestSpec2} = testutil:generate_testobject(B2, K2,
|
{TestObject2, TestSpec2} = testutil:generate_testobject(B2, K2,
|
||||||
V2, Spec2, MD),
|
V2, Spec2, MD),
|
||||||
ok = testutil:book_riakput(Bookie1, TestObject2, TestSpec2),
|
ok = testutil:book_riakput(Bookie1, TestObject2, TestSpec2),
|
||||||
|
|
|
@ -502,7 +502,7 @@ check_indexed_objects(Book, B, KSpecL, V) ->
|
||||||
{fun foldkeysfun/3, []},
|
{fun foldkeysfun/3, []},
|
||||||
{"idx1_bin",
|
{"idx1_bin",
|
||||||
"0",
|
"0",
|
||||||
"~"},
|
"|"},
|
||||||
?RETURN_TERMS}),
|
?RETURN_TERMS}),
|
||||||
SW = os:timestamp(),
|
SW = os:timestamp(),
|
||||||
{async, Fldr} = R,
|
{async, Fldr} = R,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue