aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-08-06 19:57:56 +0200
committerLoïc Hoguin <[email protected]>2019-08-06 19:57:56 +0200
commite1a4a64331cfd70d1a2d0a1f199b86612d8b3d92 (patch)
treeca6060cac7ec60737d7afc1065df05b37d276be1
parent208c78516646cea5c4157cb341f059ea177883e0 (diff)
downloadgun-e1a4a64331cfd70d1a2d0a1f199b86612d8b3d92.tar.gz
gun-e1a4a64331cfd70d1a2d0a1f199b86612d8b3d92.tar.bz2
gun-e1a4a64331cfd70d1a2d0a1f199b86612d8b3d92.zip
Make gun_SUITE parallel and add retries on Windows
On Windows the timings can be flaky. It's better to retry a few times rather than fail immediately.
-rw-r--r--test/gun_SUITE.erl11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/gun_SUITE.erl b/test/gun_SUITE.erl
index 4526a15..e16f165 100644
--- a/test/gun_SUITE.erl
+++ b/test/gun_SUITE.erl
@@ -24,7 +24,16 @@
-import(gun_test, [receive_all_from/2]).
all() ->
- ct_helper:all(?MODULE).
+ [{group, gun}].
+
+groups() ->
+ %% On Windows we sometimes have timeout related failures due to
+ %% some operations taking longer on Windows. Best retry a few times.
+ Props = case os:type() of
+ {win32, _} -> [{repeat_until_all_ok, 100}];
+ _ -> []
+ end,
+ [{gun, [parallel|Props], ct_helper:all(?MODULE)}].
%% Tests.