@@ -98,11 +98,11 @@ testEarlyDisconnect nextPort = do
9898
9999 -- TEST 1: they connect to us, then drop the connection
100100 do
101− ConnectionOpened cid _ addr <- receive endpoint
101+ ConnectionOpened _ _ addr <- receive endpoint
102102 True <- return $ addr == theirAddr
103103
104− ErrorEvent (TransportError (EventConnectionLost (Just addr') [cid']) _) <- receive endpoint
105− True <- return $ addr' == theirAddr && cid' == cid
104+ ErrorEvent (TransportError (EventConnectionLost addr') _) <- receive endpoint
105+ True <- return $ addr' == theirAddr
106106
107107 return ()
108108
@@ -124,8 +124,8 @@ testEarlyDisconnect nextPort = do
124124 Received cid' ["pong"] <- receive endpoint
125125 True <- return $ cid == cid'
126126
127− ErrorEvent (TransportError (EventConnectionLost (Just addr') [cid'']) _) <- receive endpoint
128− True <- return $ addr' == theirAddr && cid'' == cid
127+ ErrorEvent (TransportError (EventConnectionLost addr') _) <- receive endpoint
128+ True <- return $ addr' == theirAddr
129129
130130 return ()
131131
@@ -235,7 +235,7 @@ testEarlyCloseSocket nextPort = do
235235 ConnectionClosed cid'' <- receive endpoint
236236 True <- return $ cid'' == cid
237237
238− ErrorEvent (TransportError (EventConnectionLost (Just addr') []) _) <- receive endpoint
238+ ErrorEvent (TransportError (EventConnectionLost addr') _) <- receive endpoint
239239 True <- return $ addr' == theirAddr
240240
241241 return ()
@@ -634,7 +634,7 @@ testReconnect nextPort = do
634634
635635 -- But a send will fail because the server has closed the connection again
636636 Left (TransportError SendFailed _) <- send conn1 ["ping"]
637− ErrorEvent (TransportError (EventConnectionLost _ []) _) <- receive endpoint
637+ ErrorEvent (TransportError (EventConnectionLost _) _) <- receive endpoint
638638
639639 -- But a subsequent call to connect should reestablish the connection
640640 Right conn2 <- connect endpoint theirAddr ReliableOrdered defaultConnectHints
@@ -695,7 +695,7 @@ testUnidirectionalError nextPort = do
695695
696696 -- But when we send we find the error
697697 Left (TransportError SendFailed _) <- send conn1 ["ping"]
698− ErrorEvent (TransportError (EventConnectionLost _ []) _) <- receive endpoint
698+ ErrorEvent (TransportError (EventConnectionLost _) _) <- receive endpoint
699699
700700 -- A call to connect should now re-establish the connection
701701 Right conn2 <- connect endpoint theirAddr ReliableOrdered defaultConnectHints
@@ -709,7 +709,7 @@ testUnidirectionalError nextPort = do
709709 -- We now find the error when we attempt to close the connection
710710 Nothing <- timeout 500000 $ receive endpoint
711711 close conn2
712− ErrorEvent (TransportError (EventConnectionLost _ []) _) <- receive endpoint
712+ ErrorEvent (TransportError (EventConnectionLost _) _) <- receive endpoint
713713 Right conn3 <- connect endpoint theirAddr ReliableOrdered defaultConnectHints
714714 send conn3 ["ping"]
715715 takeMVar serverGotPing
@@ -721,7 +721,7 @@ testUnidirectionalError nextPort = do
721721 -- Now we notice the problem when we try to connect
722722 Nothing <- timeout 500000 $ receive endpoint
723723 Left (TransportError ConnectFailed _) <- connect endpoint theirAddr ReliableOrdered defaultConnectHints
724− ErrorEvent (TransportError (EventConnectionLost _ []) _) <- receive endpoint
724+ ErrorEvent (TransportError (EventConnectionLost _) _) <- receive endpoint
725725 Right conn4 <- connect endpoint theirAddr ReliableOrdered defaultConnectHints
726726 send conn4 ["ping"]
727727 takeMVar serverGotPing
@@ -746,7 +746,7 @@ testInvalidCloseConnection nextPort = do
746746
747747 -- At this point the client sends an invalid request, so we terminate the
748748 -- connection
749− ErrorEvent (TransportError (EventConnectionLost _ [_]) _) <- receive endpoint
749+ ErrorEvent (TransportError (EventConnectionLost _) _) <- receive endpoint
750750
751751 putMVar serverDone ()
752752