File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 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
5555 (view L. result -> lens) <- request SMethod_TextDocumentCodeLens (CodeLensParams Nothing Nothing doc)
5656 case lens of
5757 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!"
5959 (T. isInfixOf " divide by zero" _message && T. isInfixOf (coerce pluginId) _message)
6060 _ -> liftIO $ assertFailure $ show lens
6161
Original file line number Diff line number Diff line change @@ -307,11 +307,12 @@ testIde recorder arguments session = do
307307 cwd <- getCurrentDirectory
308308 (hInRead, hInWrite) <- createPipe
309309 (hOutRead, hOutWrite) <- createPipe
310- let projDir = " . "
310+
311311 let server = IDE. defaultMain (cmapWithPrio LogIDEMain recorder) arguments
312312 { IDE. argsHandleIn = pure hInRead
313313 , IDE. argsHandleOut = pure hOutWrite
314314 }
315315
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
470470 createDirectoryIfMissing True testCacheDir
471471 setEnv " XDG_CACHE_HOME" testCacheDir
472472 pure testRoot
473+
473474goldenWithHaskellDocFormatter
474475 :: Pretty b
475476 => Config
You can’t perform that action at this time.
0 commit comments