From 2fea310bbd702c2786341e3a54dbd4aa15a963e2 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 27 May 2024 22:49:37 +0800 Subject: [PATCH 1/2] migrate ClientSettingsTests --- ghcide/test/exe/ClientSettingsTests.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghcide/test/exe/ClientSettingsTests.hs b/ghcide/test/exe/ClientSettingsTests.hs index 698e0af165..e51adcba04 100644 --- a/ghcide/test/exe/ClientSettingsTests.hs +++ b/ghcide/test/exe/ClientSettingsTests.hs @@ -1,6 +1,7 @@ {-# LANGUAGE GADTs #-} module ClientSettingsTests (tests) where +import Config import Config (lspTestCaps, testWithConfig) import Control.Applicative.Combinators import Control.Monad @@ -18,11 +19,10 @@ import Language.LSP.Test import Test.Hls (testConfigCaps, waitForProgressDone) import Test.Tasty -import TestUtils tests :: TestTree tests = testGroup "client settings handling" - [ testWithConfig "ghcide restarts shake session on config changes" def {testConfigCaps = lspTestCaps} $ do + [ testWithDummyPluginEmpty "ghcide restarts shake session on config changes" $ do setIgnoringLogNotifications False void $ createDoc "A.hs" "haskell" "module A where" waitForProgressDone From 89f64a05f84660c976429ddd8b2e3e0c10f36bee Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 27 May 2024 22:50:51 +0800 Subject: [PATCH 2/2] fix import --- ghcide/test/exe/ClientSettingsTests.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghcide/test/exe/ClientSettingsTests.hs b/ghcide/test/exe/ClientSettingsTests.hs index e51adcba04..8251558235 100644 --- a/ghcide/test/exe/ClientSettingsTests.hs +++ b/ghcide/test/exe/ClientSettingsTests.hs @@ -1,8 +1,8 @@ {-# LANGUAGE GADTs #-} module ClientSettingsTests (tests) where -import Config -import Config (lspTestCaps, testWithConfig) +import Config (lspTestCaps, testWithConfig, + testWithDummyPluginEmpty) import Control.Applicative.Combinators import Control.Monad import Data.Aeson (toJSON)