aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2023-01-09 13:17:26 +0100
committerLoïc Hoguin <[email protected]>2023-01-09 13:17:26 +0100
commitc3408e605e7707481d64df2d55099249ac21542c (patch)
treec72a39a90b01f132c0211a5f413e518a4e109122 /test
parente6eaa24f504978eefd4d55be6b4899bd335e84f6 (diff)
downloadgun-c3408e605e7707481d64df2d55099249ac21542c.tar.gz
gun-c3408e605e7707481d64df2d55099249ac21542c.tar.bz2
gun-c3408e605e7707481d64df2d55099249ac21542c.zip
Skip degraded configuration test on Windows
Diffstat (limited to 'test')
-rw-r--r--test/pool_SUITE.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/pool_SUITE.erl b/test/pool_SUITE.erl
index 3105aa6..1289415 100644
--- a/test/pool_SUITE.erl
+++ b/test/pool_SUITE.erl
@@ -383,6 +383,14 @@ stop_pool(Config) ->
gun_pool:stop_pool("localhost", Port, #{scope => ?FUNCTION_NAME}).
degraded_configuration_error(Config) ->
+ case os:type() of
+ {win32, _} ->
+ {skip, "The initial connect timeout on Windows is too large."};
+ _ ->
+ do_degraded_configuration_error(Config)
+ end.
+
+do_degraded_configuration_error(Config) ->
doc("Confirm the pool ends up in a degraded state "
"when connection is impossible because of bad configuration."),
Port = config(port, Config),