diff options
Diffstat (limited to 'test/gun_SUITE.erl')
-rw-r--r-- | test/gun_SUITE.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/gun_SUITE.erl b/test/gun_SUITE.erl index e61f98f..4794505 100644 --- a/test/gun_SUITE.erl +++ b/test/gun_SUITE.erl @@ -440,7 +440,11 @@ set_owner(_) -> shutdown_reason(_) -> doc("The last connection failure must be propagated."), - {ok, ConnPid} = gun:open("localhost", 12345, #{retry => 0}), + %% We set retry=1 so that we can monitor before the process terminates. + {ok, ConnPid} = gun:open("localhost", 12345, #{ + retry => 1, + retry_timeout => 500 + }), Ref = monitor(process, ConnPid), receive {'DOWN', Ref, process, ConnPid, Reason} -> |