aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-09-26 17:23:29 +0200
committerLoïc Hoguin <[email protected]>2018-09-26 17:23:29 +0200
commit29fa471166e033090ee424df8c6f3c5489dd9e39 (patch)
treea028ae3c6953607f41ba93475ffa7f6ed064f5b6
parenta49200eef5681a21b47b9398804021b340486db8 (diff)
downloadgun-29fa471166e033090ee424df8c6f3c5489dd9e39.tar.gz
gun-29fa471166e033090ee424df8c6f3c5489dd9e39.tar.bz2
gun-29fa471166e033090ee424df8c6f3c5489dd9e39.zip
Add a timer:sleep to make a test pass reliably
-rw-r--r--test/rfc7540_SUITE.erl1
1 files changed, 1 insertions, 0 deletions
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).