From 9fa3fa25a8cafd7f5dd74d1ebc84c2258b5374bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 6 Jan 2019 11:42:12 +0100 Subject: Add a timeout to prevent an intermittent failure --- test/gun_SUITE.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/gun_SUITE.erl b/test/gun_SUITE.erl index 6da5ca6..d580ed3 100644 --- a/test/gun_SUITE.erl +++ b/test/gun_SUITE.erl @@ -68,7 +68,8 @@ detect_owner_gone(_) -> spawn(fun() -> {ok, ConnPid} = gun:open("localhost", Port), Self ! {conn, ConnPid}, - gun:await_up(ConnPid) + gun:await_up(ConnPid), + timer:sleep(100) end), {ok, _} = gen_tcp:accept(ListenSocket, 5000), Pid = receive -- cgit v1.2.3