Skip to content
Snippets Groups Projects
Commit 3b316a1b authored by Jens Nolte's avatar Jens Nolte
Browse files

Add a test for linkExecution

parent f22237c7
No related branches found
No related tags found
No related merge requests found
Pipeline #2511 passed
......@@ -108,3 +108,13 @@ spec = parallel $ do
rm <- askResourceManager
liftIO $ throwToResourceManager rm TestException
sleepForever
describe "linkExecution" do
it "does not generate an exception after it is completed" $ io do
(`shouldThrow` \(_ :: CombinedException) -> True) do
withRootResourceManager do
linkExecution do
pure ()
rm <- askResourceManager
liftIO $ throwToResourceManager rm TestException
liftIO $ threadDelay 100000
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment