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
129
129
import Language.LSP.Test
130
130
import Prelude hiding (log )
131
131
import System.Directory (canonicalizePath ,
132
- createDirectoryIfMissing ,
133
132
getCurrentDirectory ,
134
133
getTemporaryDirectory ,
135
134
makeAbsolute ,
@@ -587,17 +586,10 @@ instance Default (TestConfig b) where
587
586
-- It returns the root to the testing directory that tests should use.
588
587
-- This directory is not fully cleaned between reruns.
589
588
-- 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.
594
589
setupTestEnvironment :: IO FilePath
595
590
setupTestEnvironment = do
596
591
tmpDirRoot <- getTemporaryDirectory
597
592
let testRoot = tmpDirRoot </> " hls-test-root"
598
- testCacheDir = testRoot </> " .cache"
599
- createDirectoryIfMissing True testCacheDir
600
- setEnv " XDG_CACHE_HOME" testCacheDir
601
593
pure testRoot
602
594
603
595
goldenWithHaskellDocFormatter
You can’t perform that action at this time.
0 commit comments