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

Safe HaskellNone
LanguageHaskell98

Network.Transport.Tests.Auxiliary

Contents

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

Orphan instances