From ecf3d43613ff69dd734411b35849dbfb0b33229b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 17 Jan 2024 17:16:38 +0100 Subject: Improve reliability of a few tests GitHub Actions runners are not as good as self-hosted BuildKite so some adjustments need to be made to timeouts and such. --- test/http_SUITE.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/http_SUITE.erl') diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl index fb9f93b..bfe55da 100644 --- a/test/http_SUITE.erl +++ b/test/http_SUITE.erl @@ -329,6 +329,7 @@ do_idle_timeout_on_send(Config, Protocol) -> try ConnPid = gun_open([{type, tcp}, {protocol, Protocol}, {port, Port}|Config]), {ok, Protocol} = gun:await_up(ConnPid), + timer:sleep(500), #{socket := Socket} = gun:info(ConnPid), Pid = get_remote_pid_tcp(Socket), StreamRef = gun:get(ConnPid, "/streamed_result/10/250"), @@ -359,6 +360,7 @@ do_idle_timeout_reset_on_send(Config, Protocol) -> try ConnPid = gun_open([{type, tcp}, {protocol, Protocol}, {port, Port}|Config]), {ok, Protocol} = gun:await_up(ConnPid), + timer:sleep(500), #{socket := Socket} = gun:info(ConnPid), Pid = get_remote_pid_tcp(Socket), StreamRef = gun:get(ConnPid, "/streamed_result/10/250"), -- cgit v1.2.3