@@ -17,8 +17,8 @@ import Data.Typeable()
1717import Network.Transport.TCP
1818import qualified Network.Transport as NT
1919
20- import Test.Framework ( Test , testGroup , defaultMain )
21- import Test.Framework.Providers .HUnit (testCase )
20+ import Test.Tasty ( TestTree , testGroup , defaultMain )
21+ import Test.Tasty .HUnit (testCase )
2222
2323testAsyncPoll :: TestResult (AsyncResult () ) -> Process ()
2424testAsyncPoll result = do
@@ -158,8 +158,8 @@ testAsyncRecursive result = do
158158 myNode <- getSelfNode
159159 fib (myNode,6 ) >>= stash result
160160
161- tests :: LocalNode -> [ Test ]
162- tests localNode = [
161+ tests :: LocalNode -> TestTree
162+ tests localNode = testGroup " " [
163163 testGroup " Handling async results with STM" [
164164 testCase " testAsyncCancel"
165165 (delayedAssertion
@@ -210,14 +210,14 @@ tests localNode = [
210210 ]
211211 ]
212212
213- asyncStmTests :: NT. Transport -> IO [ Test ]
213+ asyncStmTests :: NT. Transport -> IO TestTree
214214asyncStmTests transport = do
215215 localNode <- newLocalNode transport $ __remoteTableDecl initRemoteTable
216216 let testData = tests localNode
217217 return testData
218218
219219-- | Given a @builder@ function, make and run a test suite on a single transport
220- testMain :: (NT. Transport -> IO [ Test ] ) -> IO ()
220+ testMain :: (NT. Transport -> IO TestTree ) -> IO ()
221221testMain builder = do
222222 Right (transport, _) <- createTransportExposeInternals (defaultTCPAddr " 127.0.0.1" " 0" ) defaultTCPParameters
223223 testData <- builder transport
0 commit comments