Browse Source

Increase the req_SUITE timetrap timeout on Windows

The local network is much slower so the tests take longer there.
Loïc Hoguin 5 years ago
parent
commit
5203ee6a84
1 changed files with 5 additions and 1 deletions
  1. 5 1
      test/req_SUITE.erl

+ 5 - 1
test/req_SUITE.erl

@@ -23,7 +23,11 @@
 %% ct.
 
 suite() ->
-	[{timetrap, 30000}].
+	Timeout = case os:type() of
+		{win32, _} -> 60000;
+		_ -> 30000
+	end,
+	[{timetrap, Timeout}].
 
 all() ->
 	cowboy_test:common_all().