@@ -782,7 +782,6 @@ public void BeginAcceptV4BoundToSpecificV4_Success()
782
782
}
783
783
784
784
[ Fact ]
785
- [ ActiveIssue ( "https://github.com/dotnet/runtime/issues/45810" , TestRuntimes . Mono ) ]
786
785
public void BeginAcceptV4BoundToAnyV4_Success ( )
787
786
{
788
787
DualModeConnect_BeginAccept_Helper ( IPAddress . Any , IPAddress . Loopback ) ;
@@ -844,6 +843,13 @@ private void DualModeConnect_BeginAccept_Helper(IPAddress listenOn, IPAddress co
844
843
serverSocket . Listen ( 1 ) ;
845
844
IAsyncResult async = serverSocket . BeginAccept ( null , null ) ;
846
845
SocketClient client = new SocketClient ( _log , serverSocket , connectTo , port ) ;
846
+
847
+ Assert . True (
848
+ client . WaitHandle . WaitOne ( TestSettings . PassingTestTimeout ) ,
849
+ "Timed out while waiting for connection" ) ;
850
+ Assert . True (
851
+ async . AsyncWaitHandle . WaitOne ( TestSettings . PassingTestTimeout ) ,
852
+ "Timed out while waiting to accept the client" ) ;
847
853
848
854
// Due to the nondeterministic nature of calling dispose on a Socket that is doing
849
855
// an EndAccept operation, we expect two types of exceptions to happen.
@@ -866,10 +872,6 @@ private void DualModeConnect_BeginAccept_Helper(IPAddress listenOn, IPAddress co
866
872
catch ( ObjectDisposedException ) { }
867
873
catch ( SocketException ) { }
868
874
869
- Assert . True (
870
- client . WaitHandle . WaitOne ( TestSettings . PassingTestTimeout ) ,
871
- "Timed out while waiting for connection" ) ;
872
-
873
875
if ( client . Error != SocketError . Success )
874
876
{
875
877
throw new SocketException ( ( int ) client . Error ) ;
0 commit comments