Skip to content

Commit 1d4eaa7

Browse files
committed
use waitForBuildQueue in golden test helpers
1 parent d85bf66 commit 1d4eaa7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hls-test-utils/src/Test/Hls.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import Control.Applicative.Combinators
3030
import Control.Concurrent.Async (async, cancel, wait)
3131
import Control.Concurrent.Extra
3232
import Control.Exception.Base
33-
import Control.Monad (unless)
33+
import Control.Monad (unless, void)
3434
import Control.Monad.IO.Class
3535
import Data.Aeson (Value (Null), toJSON)
3636
import Data.ByteString.Lazy (ByteString)
@@ -95,6 +95,7 @@ goldenWithHaskellDoc plugin title testDataDir path desc ext act =
9595
$ TL.encodeUtf8 . TL.fromStrict
9696
<$> do
9797
doc <- openDoc (path <.> ext) "haskell"
98+
void waitForBuildQueue
9899
act doc
99100
documentContents doc
100101

@@ -114,6 +115,7 @@ goldenWithHaskellDocFormatter plugin formatter title testDataDir path desc ext a
114115
$ TL.encodeUtf8 . TL.fromStrict
115116
<$> do
116117
doc <- openDoc (path <.> ext) "haskell"
118+
void waitForBuildQueue
117119
act doc
118120
documentContents doc
119121

0 commit comments

Comments
 (0)