diff options
author | Loïc Hoguin <[email protected]> | 2020-03-28 09:02:47 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-03-28 09:02:47 +0100 |
commit | 05b46f9f3fdc7cd9fe3827ff4341db8be2c5a134 (patch) | |
tree | 198425dc96931985f93347745c5c5cb23848415f /test | |
parent | 48326cf993c6610603b0528ddf3b9c1d5139e16c (diff) | |
download | gun-05b46f9f3fdc7cd9fe3827ff4341db8be2c5a134.tar.gz gun-05b46f9f3fdc7cd9fe3827ff4341db8be2c5a134.tar.bz2 gun-05b46f9f3fdc7cd9fe3827ff4341db8be2c5a134.zip |
In gun_SUITE shutdown_reason case, don't match in receive
Match inside the clause instead. This should make clearer
the occasional failure.
Diffstat (limited to 'test')
-rw-r--r-- | test/gun_SUITE.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/gun_SUITE.erl b/test/gun_SUITE.erl index 04d72af..e61f98f 100644 --- a/test/gun_SUITE.erl +++ b/test/gun_SUITE.erl @@ -443,7 +443,8 @@ shutdown_reason(_) -> {ok, ConnPid} = gun:open("localhost", 12345, #{retry => 0}), Ref = monitor(process, ConnPid), receive - {'DOWN', Ref, process, ConnPid, {shutdown, econnrefused}} -> + {'DOWN', Ref, process, ConnPid, Reason} -> + {shutdown, econnrefused} = Reason, gun:close(ConnPid) end. |