From 29fa471166e033090ee424df8c6f3c5489dd9e39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 26 Sep 2018 17:23:29 +0200 Subject: Add a timer:sleep to make a test pass reliably --- test/rfc7540_SUITE.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/test/rfc7540_SUITE.erl b/test/rfc7540_SUITE.erl index 10084da..9398318 100644 --- a/test/rfc7540_SUITE.erl +++ b/test/rfc7540_SUITE.erl @@ -95,6 +95,7 @@ headers_priority_flag(_) -> end), {ok, ConnPid} = gun:open("localhost", Port, #{protocols => [http2]}), {ok, http2} = gun:await_up(ConnPid), + timer:sleep(100), %% Give enough time for the handshake to fully complete. StreamRef = gun:get(ConnPid, "/"), {response, fin, 200, _} = gun:await(ConnPid, StreamRef), gun:close(ConnPid). -- cgit v1.2.3