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

Simplify and re-enable async timeout test

parent 49021fd4
No related branches found
No related tags found
No related merge requests found
......@@ -56,10 +56,9 @@ spec = parallel $ do
putAsyncVar_ avar ()
withDefaultAsyncManager (await avar >>= pure)
xit "can terminate when encountering an asynchronous exception" $ do
it "can terminate when encountering an asynchronous exception" $ do
never <- newAsyncVar :: IO (AsyncVar ())
result <- timeout 100000 $ withDefaultAsyncManager $
-- Use bind to create an AsyncIOPlumbing, which is the interesting case that uses `uninterruptibleMask` when run
await never >>= pure
await never
result `shouldBe` Nothing
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