diff options
author | Loïc Hoguin <[email protected]> | 2020-03-23 16:41:02 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-03-23 16:41:02 +0100 |
commit | c1c9341255bdd6664e4c69093cc2e84d7dc43bb9 (patch) | |
tree | 8c456c0b363004d2769c683407a1c67b26add738 /test/shutdown_SUITE.erl | |
parent | 5f73982cf9edc258e955e3b115cba1a4c4af263f (diff) | |
download | gun-c1c9341255bdd6664e4c69093cc2e84d7dc43bb9.tar.gz gun-c1c9341255bdd6664e4c69093cc2e84d7dc43bb9.tar.bz2 gun-c1c9341255bdd6664e4c69093cc2e84d7dc43bb9.zip |
Tweak connection timeouts tests for Windows
It seems that the retry behavior changed recently. It would
be better to retrieve the exact values and calculate how much
time we want to wait but that will do for now.
Diffstat (limited to 'test/shutdown_SUITE.erl')
-rw-r--r-- | test/shutdown_SUITE.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/shutdown_SUITE.erl b/test/shutdown_SUITE.erl index 4cc2566..b7a4c7e 100644 --- a/test/shutdown_SUITE.erl +++ b/test/shutdown_SUITE.erl @@ -61,7 +61,7 @@ not_connected_gun_shutdown(_) -> ConnRef = monitor(process, ConnPid), gun:shutdown(ConnPid), Timeout = case os:type() of - {win32, _} -> 2000; + {win32, _} -> 5000; _ -> 1000 end, gun_is_down(ConnPid, ConnRef, shutdown, Timeout). @@ -87,7 +87,7 @@ do_not_connected_owner_down(ExitReason, DownReason) -> ConnPid = receive {conn, C} -> C after 1000 -> error(timeout) end, ConnRef = monitor(process, ConnPid), Timeout = case os:type() of - {win32, _} -> 2000; + {win32, _} -> 5000; _ -> 1000 end, gun_is_down(ConnPid, ConnRef, DownReason, Timeout). |