@@ -98,11 +98,11 @@ testEarlyDisconnect nextPort = do
99 -- TEST 1: they connect to us, then drop the connection
99 -- TEST 1: they connect to us, then drop the connection
101− ConnectionOpened cid _ addr <- receive endpoint
101+ ConnectionOpened _ _ addr <- receive endpoint
102 True <- return $ addr == theirAddr
102 True <- return $ addr == theirAddr
104− ErrorEvent (TransportError (EventConnectionLost (Just addr') [cid']) _) <- receive endpoint
104+ ErrorEvent (TransportError (EventConnectionLost addr') _) <- receive endpoint
105− True <- return $ addr' == theirAddr && cid' == cid
105+ True <- return $ addr' == theirAddr
107 return ()
107 return ()
@@ -124,8 +124,8 @@ testEarlyDisconnect nextPort = do
124 Received cid' ["pong"] <- receive endpoint
124 Received cid' ["pong"] <- receive endpoint
125 True <- return $ cid == cid'
125 True <- return $ cid == cid'
127− ErrorEvent (TransportError (EventConnectionLost (Just addr') [cid'']) _) <- receive endpoint
127+ ErrorEvent (TransportError (EventConnectionLost addr') _) <- receive endpoint
128− True <- return $ addr' == theirAddr && cid'' == cid
128+ True <- return $ addr' == theirAddr
130 return ()
130 return ()
@@ -235,7 +235,7 @@ testEarlyCloseSocket nextPort = do
235 ConnectionClosed cid'' <- receive endpoint
235 ConnectionClosed cid'' <- receive endpoint
236 True <- return $ cid'' == cid
236 True <- return $ cid'' == cid
238− ErrorEvent (TransportError (EventConnectionLost (Just addr') []) _) <- receive endpoint
238+ ErrorEvent (TransportError (EventConnectionLost addr') _) <- receive endpoint
239 True <- return $ addr' == theirAddr
239 True <- return $ addr' == theirAddr
241 return ()
241 return ()
@@ -634,7 +634,7 @@ testReconnect nextPort = do
635 -- But a send will fail because the server has closed the connection again
635 -- But a send will fail because the server has closed the connection again
636 Left (TransportError SendFailed _) <- send conn1 ["ping"]
636 Left (TransportError SendFailed _) <- send conn1 ["ping"]
637− ErrorEvent (TransportError (EventConnectionLost _ []) _) <- receive endpoint
637+ ErrorEvent (TransportError (EventConnectionLost _) _) <- receive endpoint
639 -- But a subsequent call to connect should reestablish the connection
639 -- But a subsequent call to connect should reestablish the connection
640 Right conn2 <- connect endpoint theirAddr ReliableOrdered defaultConnectHints
640 Right conn2 <- connect endpoint theirAddr ReliableOrdered defaultConnectHints
@@ -695,7 +695,7 @@ testUnidirectionalError nextPort = do
696 -- But when we send we find the error
696 -- But when we send we find the error
697 Left (TransportError SendFailed _) <- send conn1 ["ping"]
697 Left (TransportError SendFailed _) <- send conn1 ["ping"]
698− ErrorEvent (TransportError (EventConnectionLost _ []) _) <- receive endpoint
698+ ErrorEvent (TransportError (EventConnectionLost _) _) <- receive endpoint
700 -- A call to connect should now re-establish the connection
700 -- A call to connect should now re-establish the connection
701 Right conn2 <- connect endpoint theirAddr ReliableOrdered defaultConnectHints
701 Right conn2 <- connect endpoint theirAddr ReliableOrdered defaultConnectHints
@@ -709,7 +709,7 @@ testUnidirectionalError nextPort = do
709 -- We now find the error when we attempt to close the connection
709 -- We now find the error when we attempt to close the connection
710 Nothing <- timeout 500000 $ receive endpoint
710 Nothing <- timeout 500000 $ receive endpoint
711 close conn2
711 close conn2
712− ErrorEvent (TransportError (EventConnectionLost _ []) _) <- receive endpoint
712+ ErrorEvent (TransportError (EventConnectionLost _) _) <- receive endpoint
713 Right conn3 <- connect endpoint theirAddr ReliableOrdered defaultConnectHints
713 Right conn3 <- connect endpoint theirAddr ReliableOrdered defaultConnectHints
714 send conn3 ["ping"]
714 send conn3 ["ping"]
715 takeMVar serverGotPing
715 takeMVar serverGotPing
@@ -721,7 +721,7 @@ testUnidirectionalError nextPort = do
721 -- Now we notice the problem when we try to connect
721 -- Now we notice the problem when we try to connect
722 Nothing <- timeout 500000 $ receive endpoint
722 Nothing <- timeout 500000 $ receive endpoint
723 Left (TransportError ConnectFailed _) <- connect endpoint theirAddr ReliableOrdered defaultConnectHints
723 Left (TransportError ConnectFailed _) <- connect endpoint theirAddr ReliableOrdered defaultConnectHints
724− ErrorEvent (TransportError (EventConnectionLost _ []) _) <- receive endpoint
724+ ErrorEvent (TransportError (EventConnectionLost _) _) <- receive endpoint
725 Right conn4 <- connect endpoint theirAddr ReliableOrdered defaultConnectHints
725 Right conn4 <- connect endpoint theirAddr ReliableOrdered defaultConnectHints
726 send conn4 ["ping"]
726 send conn4 ["ping"]
727 takeMVar serverGotPing
727 takeMVar serverGotPing
@@ -746,7 +746,7 @@ testInvalidCloseConnection nextPort = do
747 -- At this point the client sends an invalid request, so we terminate the
747 -- At this point the client sends an invalid request, so we terminate the
748 -- connection
748 -- connection
749− ErrorEvent (TransportError (EventConnectionLost _ [_]) _) <- receive endpoint
749+ ErrorEvent (TransportError (EventConnectionLost _) _) <- receive endpoint
751 putMVar serverDone ()
751 putMVar serverDone ()