From 1964f1055b39edaa35aa17d13532580b0d958870 Mon Sep 17 00:00:00 2001 From: Martin Sumner Date: Thu, 19 Oct 2017 21:44:07 +0100 Subject: [PATCH] Add test timeout --- src/leveled_tinybloom.erl | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/leveled_tinybloom.erl b/src/leveled_tinybloom.erl index 67a2d47..1c7cad8 100644 --- a/src/leveled_tinybloom.erl +++ b/src/leveled_tinybloom.erl @@ -283,12 +283,15 @@ empty_bloom_test() -> ?assertMatch({0, 4}, check_neg_hashes(BloomBin0, [0, 10, 100, 100000], {0, 0})). -bloom_test() -> +bloom_test_() -> + {timeout, 20, fun bloom_test_ranges/0}. + +bloom_test_ranges() -> test_bloom(128, 2000), - test_bloom(64, 10), - test_bloom(32, 10), - test_bloom(16, 10), - test_bloom(8, 10). + test_bloom(64, 100), + test_bloom(32, 100), + test_bloom(16, 100), + test_bloom(8, 100). test_bloom(N, Runs) -> ListOfHashLists =