From 0caeb65d04014f2118546b6b285748f10bab7c7d Mon Sep 17 00:00:00 2001 From: Philip Kuryloski Date: Wed, 31 Mar 2021 15:47:36 +0200 Subject: [PATCH] Shard the eager_sync_SUITE by case This suite contains only one group, but is long enough to warrant sharding. This is probably a bit of a time penalty in absolute terms because init_per_suite and init_per_group re-run in each shard. --- deps/rabbit/BUILD.bazel | 9 +++++++++ deps/rabbit/test/eager_sync_SUITE.erl | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/deps/rabbit/BUILD.bazel b/deps/rabbit/BUILD.bazel index 5d26f4fc10..312815febe 100644 --- a/deps/rabbit/BUILD.bazel +++ b/deps/rabbit/BUILD.bazel @@ -415,6 +415,15 @@ rabbitmq_integration_suite( ":sync_detection_SUITE_beam_files", ], suite_name = "eager_sync_SUITE", + groups = { + "non_parallel_tests": [ + "eager_sync", + "eager_sync_cancel", + "eager_sync_auto", + "eager_sync_auto_on_policy_change", + "eager_sync_requeue", + ], + }, deps = DEPS, ) diff --git a/deps/rabbit/test/eager_sync_SUITE.erl b/deps/rabbit/test/eager_sync_SUITE.erl index 1ed7137f2c..9605b14155 100644 --- a/deps/rabbit/test/eager_sync_SUITE.erl +++ b/deps/rabbit/test/eager_sync_SUITE.erl @@ -32,6 +32,12 @@ groups() -> ]} ]. +suite() -> + [ + %% If a test hangs, no need to wait for 30 minutes. + {timetrap, {minutes, 15}} + ]. + %% ------------------------------------------------------------------- %% Testsuite setup/teardown. %% -------------------------------------------------------------------