@@ -92,7 +92,7 @@ import Data.String (fromString)
92
92
import GHC.IO.Exception (ioe_errno )
93
93
import Foreign.C.Error (Errno (.. ), eADDRNOTAVAIL )
94
94
import System.Timeout (timeout )
95
- import Network.Transport.Tests (testTransport )
95
+ import Network.Transport.Tests (testTransportWithFilter )
96
96
import Network.Transport.Tests.Auxiliary (forkTry , runTests )
97
97
import Network.Transport.Tests.Traced
98
98
@@ -1113,7 +1113,7 @@ main = do
1113
1113
, (" EarlyCloseSocket" , testEarlyCloseSocket)
1114
1114
, (" IgnoreCloseSocket" , testIgnoreCloseSocket)
1115
1115
, (" BlockAfterCloseSocket" , testBlockAfterCloseSocket)
1116
- , (" UnnecessaryConnect" , testUnnecessaryConnect 10 )
1116
+ -- , ("UnnecessaryConnect", testUnnecessaryConnect 10) -- flaky: #91
1117
1117
, (" InvalidAddress" , testInvalidAddress)
1118
1118
, (" InvalidConnect" , testInvalidConnect)
1119
1119
, (" Many" , testMany)
@@ -1129,9 +1129,13 @@ main = do
1129
1129
, (" UnreachableConnect" , testUnreachableConnect)
1130
1130
]
1131
1131
-- Run the generic tests even if the TCP specific tests failed..
1132
- testTransport (either (Left . show ) (Right ) <$>
1132
+ testTransportWithFilter ( `notElem` flakies) (either (Left . show ) (Right ) <$>
1133
1133
createTransport (defaultTCPAddr " 127.0.0.1" " 0" ) defaultTCPParameters)
1134
1134
-- ..but if the generic tests pass, still fail if the specific tests did not
1135
1135
case tcpResult of
1136
1136
Left err -> throwIO err
1137
1137
Right () -> return ()
1138
+ where
1139
+ flakies =
1140
+ [ " ParallelConnects" -- #92
1141
+ ]
0 commit comments