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:
Martin Sumner 2017-09-15 15:10:04 +01:00
parent 605a8b1e73
commit eba21f49fa
8 changed files with 63 additions and 13 deletions

View file

@ -923,7 +923,10 @@ compare_candidate_test() ->
?assertMatch([Candidate1, Candidate2, Candidate3, Candidate4],
sort_run([Candidate3, Candidate2, Candidate4, Candidate1])).
compact_singlefile_totwosmallfiles_test() ->
compact_singlefile_totwosmallfiles_test_() ->
{timeout, 60, fun compact_singlefile_totwosmallfiles_testto/0}.
compact_singlefile_totwosmallfiles_testto() ->
RP = "../test/journal",
CP = "../test/journal/journal_file/post_compact/",
ok = filelib:ensure_dir(CP),