aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2014-03-27 10:47:45 +0100
committerIngela Anderton Andin <[email protected]>2014-03-27 10:47:45 +0100
commite34bd5734c236a713f5f78cc53de5308e1afeee3 (patch)
tree57a5ed3758a0194453e5e775cc82a19f7161a348 /lib
parent0b4e51d7b84b3e3e69877a3bd2a015a60b776654 (diff)
downloadotp-e34bd5734c236a713f5f78cc53de5308e1afeee3.tar.gz
otp-e34bd5734c236a713f5f78cc53de5308e1afeee3.tar.bz2
otp-e34bd5734c236a713f5f78cc53de5308e1afeee3.zip
inets: Avoid timing issus in test case code
Diffstat (limited to 'lib')
-rw-r--r--lib/inets/test/httpd_SUITE.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/inets/test/httpd_SUITE.erl b/lib/inets/test/httpd_SUITE.erl
index 4692a00620..4be20d3a69 100644
--- a/lib/inets/test/httpd_SUITE.erl
+++ b/lib/inets/test/httpd_SUITE.erl
@@ -1104,7 +1104,7 @@ do_max_clients(Config) ->
BlockRequest = http_request("GET /eval?httpd_example:delay(2000) ", Version, Host),
{ok, Socket} = inets_test_lib:connect_bin(Type, Host, Port, transport_opts(Type, Config)),
inets_test_lib:send(Type, Socket, BlockRequest),
- ct:sleep(100),
+ ct:sleep(100), %% Avoid possible timing issues
ok = httpd_test_lib:verify_request(Type, Host,
Port,
transport_opts(Type, Config),
@@ -1117,6 +1117,7 @@ do_max_clients(Config) ->
ok
end,
inets_test_lib:close(Type, Socket),
+ ct:sleep(100), %% Avoid possible timing issues
ok = httpd_test_lib:verify_request(Type, Host,
Port,
transport_opts(Type, Config),