File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ import Language.LSP.Protocol.Types hiding
29
29
import Language.LSP.Test
30
30
import System.FilePath
31
31
import System.IO.Extra hiding (withTempDir )
32
+ import Test.Hls.Util (EnvSpec (.. ), OS (.. ),
33
+ ignoreInEnv )
32
34
import Test.Tasty
33
35
import Test.Tasty.HUnit
34
36
@@ -169,7 +171,8 @@ simpleMultiTest3 variant =
169
171
170
172
-- Like simpleMultiTest but open the files in component 'a' in a separate session
171
173
simpleMultiDefTest :: FilePath -> TestTree
172
- simpleMultiDefTest variant = testCase (multiTestName variant " def-test" ) $ runWithExtraFiles variant $ \ dir -> do
174
+ simpleMultiDefTest variant = ignoreForWindows $ testCase testName $
175
+ runWithExtraFiles variant $ \ dir -> do
173
176
let aPath = dir </> " a/A.hs"
174
177
bPath = dir </> " b/B.hs"
175
178
adoc <- liftIO $ runInDir dir $ do
@@ -184,6 +187,11 @@ simpleMultiDefTest variant = testCase (multiTestName variant "def-test") $ runWi
184
187
let fooL = mkL (adoc ^. L. uri) 2 0 2 3
185
188
checkDefs locs (pure [fooL])
186
189
expectNoMoreDiagnostics 0.5
190
+ where
191
+ testName = multiTestName variant " def-test"
192
+ ignoreForWindows
193
+ | testName == " simple-multi-def-test" = ignoreInEnv [HostOS Windows ] " Test is flaky on Windows, see #4270"
194
+ | otherwise = id
187
195
188
196
multiRexportTest :: TestTree
189
197
multiRexportTest =
You can’t perform that action at this time.
0 commit comments