From c82cb757c1ac3394c9be4f53476b9a5839aa1e3c 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 14363f1aed..2a31197dab 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 [] +