diff options
author | Loïc Hoguin <[email protected]> | 2025-02-10 15:59:52 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2025-02-10 15:59:52 +0100 |
commit | 882a4f459121f82ffc3f2a53cdb1d7194e502abe (patch) | |
tree | ae9611b2344efdc8dfd3b6e1c8d3b3ed4c60d502 | |
parent | 053e233c5634ede60dec6c2c261a5729dae1abc4 (diff) | |
download | cowboy-882a4f459121f82ffc3f2a53cdb1d7194e502abe.tar.gz cowboy-882a4f459121f82ffc3f2a53cdb1d7194e502abe.tar.bz2 cowboy-882a4f459121f82ffc3f2a53cdb1d7194e502abe.zip |
Run http_SUITE:graceful_shutdown_listener separately
To avoid intermittent errors that are more likely as more
tests are calling cowboy:stop_listener.
-rw-r--r-- | test/http_SUITE.erl | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl index 2e818c2..0ef2d2c 100644 --- a/test/http_SUITE.erl +++ b/test/http_SUITE.erl @@ -28,9 +28,16 @@ -import(cowboy_test, [raw_recv/3]). -import(cowboy_test, [raw_expect_recv/2]). -all() -> [{group, clear}]. - -groups() -> [{clear, [parallel], ct_helper:all(?MODULE)}]. +all() -> + [{group, clear_no_parallel}, {group, clear}]. + +groups() -> + [ + %% cowboy:stop_listener can be slow when called many times + %% in parallel so we must run this test separately from the others. + {clear_no_parallel, [], [graceful_shutdown_listener]}, + {clear, [parallel], ct_helper:all(?MODULE) -- [graceful_shutdown_listener]} + ]. init_per_group(Name, Config) -> cowboy_test:init_http(Name, #{ |