Make tests compatible with OTP 16
this required a switch to change the sync strategy based on rebar parameter. However tests could be slow on macbook with OTP16 and sync - so timeouts added in unit tests, and ct tests sync_startegy changed to not sync for OTP16.
This commit is contained in:
parent
605a8b1e73
commit
eba21f49fa
8 changed files with 63 additions and 13 deletions
|
@ -1671,7 +1671,10 @@ ttl_test() ->
|
|||
ok = book_close(Bookie2),
|
||||
reset_filestructure().
|
||||
|
||||
hashlist_query_test() ->
|
||||
hashlist_query_test_() ->
|
||||
{timeout, 60, fun hashlist_query_testto/0}.
|
||||
|
||||
hashlist_query_testto() ->
|
||||
RootPath = reset_filestructure(),
|
||||
{ok, Bookie1} = book_start([{root_path, RootPath},
|
||||
{max_journalsize, 1000000},
|
||||
|
@ -1719,7 +1722,11 @@ hashlist_query_test() ->
|
|||
ok = book_close(Bookie2),
|
||||
reset_filestructure().
|
||||
|
||||
hashlist_query_withjournalcheck_test() ->
|
||||
|
||||
hashlist_query_withjournalcheck_test_() ->
|
||||
{timeout, 60, fun hashlist_query_withjournalcheck_testto/0}.
|
||||
|
||||
hashlist_query_withjournalcheck_testto() ->
|
||||
RootPath = reset_filestructure(),
|
||||
{ok, Bookie1} = book_start([{root_path, RootPath},
|
||||
{max_journalsize, 1000000},
|
||||
|
@ -1745,7 +1752,10 @@ hashlist_query_withjournalcheck_test() ->
|
|||
ok = book_close(Bookie1),
|
||||
reset_filestructure().
|
||||
|
||||
foldobjects_vs_hashtree_test() ->
|
||||
foldobjects_vs_hashtree_test_() ->
|
||||
{timeout, 60, fun foldobjects_vs_hashtree_testto/0}.
|
||||
|
||||
foldobjects_vs_hashtree_testto() ->
|
||||
RootPath = reset_filestructure(),
|
||||
{ok, Bookie1} = book_start([{root_path, RootPath},
|
||||
{max_journalsize, 1000000},
|
||||
|
@ -1815,8 +1825,10 @@ foldobjects_vs_hashtree_test() ->
|
|||
ok = book_close(Bookie1),
|
||||
reset_filestructure().
|
||||
|
||||
foldobjects_vs_foldheads_bybucket_test_() ->
|
||||
{timeout, 60, fun foldobjects_vs_foldheads_bybucket_testto/0}.
|
||||
|
||||
foldobjects_vs_foldheads_bybucket_test() ->
|
||||
foldobjects_vs_foldheads_bybucket_testto() ->
|
||||
RootPath = reset_filestructure(),
|
||||
{ok, Bookie1} = book_start([{root_path, RootPath},
|
||||
{max_journalsize, 1000000},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue