File tree Expand file tree Collapse file tree
src/libraries/System.Net.Sockets/tests/FunctionalTests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public void GetHashCode_NonDefaultValue_Succes()
5151
5252 private IPPacketInformation GetNonDefaultIPPacketInformation ( )
5353 {
54- const int ReceiveTimeout = 5000 ;
54+ const int ReceiveTimeout = 10000 ;
5555
5656 using ( var receiver = new Socket ( AddressFamily . InterNetwork , SocketType . Dgram , ProtocolType . Udp ) )
5757 using ( var sender = new Socket ( AddressFamily . InterNetwork , SocketType . Dgram , ProtocolType . Udp ) )
@@ -68,15 +68,15 @@ private IPPacketInformation GetNonDefaultIPPacketInformation()
6868 receiveArgs . SetBuffer ( new byte [ 1 ] , 0 , 1 ) ;
6969 receiveArgs . Completed += ( _ , args ) => ( ( ManualResetEvent ) args . UserToken ) . Set ( ) ;
7070
71- Assert . True ( receiver . ReceiveMessageFromAsync ( receiveArgs ) ) ;
71+ Assert . True ( receiver . ReceiveMessageFromAsync ( receiveArgs ) , "receiver.ReceiveMessageFromAsync" ) ;
7272
7373 // Send a few packets, in case they aren't delivered reliably.
7474 for ( int i = 0 ; i < TestSettings . UDPRedundancy ; i ++ )
7575 {
7676 sender . SendTo ( new byte [ 1 ] , new IPEndPoint ( IPAddress . Loopback , port ) ) ;
7777 }
7878
79- Assert . True ( waitHandle . WaitOne ( ReceiveTimeout ) ) ;
79+ Assert . True ( waitHandle . WaitOne ( ReceiveTimeout ) , "waitHandle.WaitOne" ) ;
8080
8181 return receiveArgs . ReceiveMessageFromPacketInfo ;
8282 }
You can’t perform that action at this time.
0 commit comments