From e6e8786d95a7a6a5c1fc69081f8e017cb46cecf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Dybiec?= Date: Mon, 10 Jun 2024 10:20:49 +0100 Subject: [PATCH] Switch ghcide tests to sequential execution --- ghcide/test/exe/Main.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ghcide/test/exe/Main.hs b/ghcide/test/exe/Main.hs index 6c8091840d..ccaea85d1d 100644 --- a/ghcide/test/exe/Main.hs +++ b/ghcide/test/exe/Main.hs @@ -33,6 +33,7 @@ module Main (main) where import qualified HieDbRetry import Test.Tasty import Test.Tasty.Ingredients.Rerun +import Test.Tasty.Runners import AsyncTests import BootTests @@ -68,7 +69,7 @@ import WatchedFileTests main :: IO () main = do -- We mess with env vars so run single-threaded. - defaultMainWithRerun $ testGroup "ghcide" + defaultMainWithRerun $ PlusTestOptions mkSequential $ testGroup "ghcide" [ OpenCloseTest.tests , InitializeResponseTests.tests , CompletionTests.tests @@ -100,3 +101,6 @@ main = do , HieDbRetry.tests , ExceptionTests.tests ] + where + PlusTestOptions mkSequential _ =sequentialTestGroup "foo" AllFinish [] +