From e1a4a64331cfd70d1a2d0a1f199b86612d8b3d92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 6 Aug 2019 19:57:56 +0200 Subject: 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. --- test/gun_SUITE.erl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'test') 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. -- cgit v1.2.3