File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,6 @@ import qualified Language.LSP.Server as LSP
129129import Language.LSP.Test
130130import Prelude hiding (log )
131131import System.Directory (canonicalizePath ,
132- createDirectoryIfMissing ,
133132 getCurrentDirectory ,
134133 getTemporaryDirectory ,
135134 makeAbsolute ,
@@ -587,17 +586,10 @@ instance Default (TestConfig b) where
587586-- It returns the root to the testing directory that tests should use.
588587-- This directory is not fully cleaned between reruns.
589588-- However, it is totally safe to delete the directory between runs.
590- --
591- -- Additionally, this overwrites the 'XDG_CACHE_HOME' variable to isolate
592- -- the tests from existing caches. 'hie-bios' and 'ghcide' honour the
593- -- 'XDG_CACHE_HOME' environment variable and generate their caches there.
594589setupTestEnvironment :: IO FilePath
595590setupTestEnvironment = do
596591 tmpDirRoot <- getTemporaryDirectory
597592 let testRoot = tmpDirRoot </> " hls-test-root"
598- testCacheDir = testRoot </> " .cache"
599- createDirectoryIfMissing True testCacheDir
600- setEnv " XDG_CACHE_HOME" testCacheDir
601593 pure testRoot
602594
603595goldenWithHaskellDocFormatter
You can’t perform that action at this time.
0 commit comments