network-transport-tests- Unit tests for Network.Transport implementations

Safe HaskellNone




runTest :: String -> IO () -> IO BoolSource

Run the given test, catching timeouts and exceptions

runTests :: [(String, IO ())] -> IO ()Source

Run a bunch of tests and throw an exception if any fails

forkTry :: IO () -> IO ThreadIdSource

Like fork, but throw exceptions in the child thread to the parent

trySome :: IO a -> IO (Either SomeException a)Source

Like try, but specialized to SomeException

randomThreadDelay :: Int -> IO ()Source

Random thread delay between 0 and the specified max