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

@ -137,11 +137,12 @@ sync_strategy() ->
sync;
"19" ->
sync;
"16" ->
_ ->
% running the sync strategy with OTP16 on macbook is
% super slow. So revert to no sync
none
end.
book_riakput(Pid, RiakObject, IndexSpecs) ->
leveled_bookie:book_put(Pid,
RiakObject#r_object.bucket,