File tree 3 files changed +6
-4
lines changed 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ tests recorder logger = do
55
55
(view L. result -> lens) <- request SMethod_TextDocumentCodeLens (CodeLensParams Nothing Nothing doc)
56
56
case lens of
57
57
Left (ResponseError {_code = InR ErrorCodes_InternalError , _message}) ->
58
- liftIO $ assertBool " We caught an error, but it wasn't ours!"
58
+ liftIO $ assertBool " We caught an error, but it wasn't ours!"
59
59
(T. isInfixOf " divide by zero" _message && T. isInfixOf (coerce pluginId) _message)
60
60
_ -> liftIO $ assertFailure $ show lens
61
61
Original file line number Diff line number Diff line change @@ -307,11 +307,12 @@ testIde recorder arguments session = do
307
307
cwd <- getCurrentDirectory
308
308
(hInRead, hInWrite) <- createPipe
309
309
(hOutRead, hOutWrite) <- createPipe
310
- let projDir = " . "
310
+
311
311
let server = IDE. defaultMain (cmapWithPrio LogIDEMain recorder) arguments
312
312
{ IDE. argsHandleIn = pure hInRead
313
313
, IDE. argsHandleOut = pure hOutWrite
314
314
}
315
315
316
- flip finally (setCurrentDirectory cwd) $ withAsync server $ \ _ ->
317
- runSessionWithHandles hInWrite hOutRead config lspTestCaps projDir session
316
+ withTempDir $ \ dir -> do
317
+ flip finally (setCurrentDirectory cwd) $ withAsync server $ \ _ ->
318
+ runSessionWithHandles hInWrite hOutRead config lspTestCaps dir session
Original file line number Diff line number Diff line change @@ -470,6 +470,7 @@ setupTestEnvironment = do
470
470
createDirectoryIfMissing True testCacheDir
471
471
setEnv " XDG_CACHE_HOME" testCacheDir
472
472
pure testRoot
473
+
473
474
goldenWithHaskellDocFormatter
474
475
:: Pretty b
475
476
=> Config
You can’t perform that action at this time.
0 commit comments