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

Safe HaskellNone
LanguageHaskell98

Network.Transport.Tests.Auxiliary

Synopsis

Documentation

runTest :: String -> IO () -> IO Bool Source

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 ThreadId Source

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