Skip to content

Commit dc8a203

Browse files
authored
Merge branch 'master' into mpj/code-action-prefix
2 parents fe757aa + c914c35 commit dc8a203

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ghcide/test/exe/Main.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ import System.FilePath
7878
import System.IO.Extra hiding (withTempDir)
7979
import qualified System.IO.Extra
8080
import System.Info.Extra (isWindows)
81+
import System.Mem (performGC)
8182
import System.Process.Extra (CreateProcess (cwd),
8283
createPipe, proc,
8384
readCreateProcessWithExitCode)
@@ -5720,6 +5721,7 @@ unitTests = do
57205721
findResolution_us :: Int -> IO Int
57215722
findResolution_us delay_us | delay_us >= 1000000 = error "Unable to compute timestamp resolution"
57225723
findResolution_us delay_us = withTempFile $ \f -> withTempFile $ \f' -> do
5724+
performGC
57235725
writeFile f ""
57245726
threadDelay delay_us
57255727
writeFile f' ""

0 commit comments

Comments
 (0)