From ec9faa34be69e6e48b45a6154e3e8687a046c091 Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Thu, 16 Oct 2025 16:08:37 +0200 Subject: [PATCH] [ty] Run file watching tests serial when using nextest (#20918) --- .config/nextest.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.config/nextest.toml b/.config/nextest.toml index 2ab53e2239..f2537ce580 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -1,3 +1,12 @@ +# Define serial test group for running tests sequentially. +[test-groups] +serial = { max-threads = 1 } + +# Run ty file watching tests sequentially to avoid race conditions. +[[profile.default.overrides]] +filter = 'binary(file_watching)' +test-group = 'serial' + [profile.ci] # Print out output for failing tests as soon as they fail, and also at the end # of the run (for easy scrollability).