Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System/Test/System.Net.Sockets/SocketTest.cs')
-rwxr-xr-xmcs/class/System/Test/System.Net.Sockets/SocketTest.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/mcs/class/System/Test/System.Net.Sockets/SocketTest.cs b/mcs/class/System/Test/System.Net.Sockets/SocketTest.cs
index c6ca3ef5b2d..a0e19d4f2d1 100755
--- a/mcs/class/System/Test/System.Net.Sockets/SocketTest.cs
+++ b/mcs/class/System/Test/System.Net.Sockets/SocketTest.cs
@@ -4361,16 +4361,19 @@ namespace MonoTests.System.Net.Sockets
var ep = server.LocalEndPoint as IPEndPoint;
+ BCCalledBack.Reset ();
var ar1 = client.BeginConnect (ep, BCCallback, client);
- client.EndConnect (ar1);
+ Assert.IsTrue (BCCalledBack.WaitOne (10000), "#1");
client.Disconnect (true);
+ BCCalledBack.Reset ();
var ar2 = client.BeginConnect (IPAddress.Loopback, ep.Port, BCCallback, client);
- client.EndConnect (ar2);
+ Assert.IsTrue (BCCalledBack.WaitOne (10000), "#2");
client.Disconnect (true);
+ BCCalledBack.Reset ();
var ar3 = client.BeginConnect (new [] {IPAddress.Loopback}, ep.Port, BCCallback, client);
- client.EndConnect (ar3);
+ Assert.IsTrue (BCCalledBack.WaitOne (10000), "#2");
client.Disconnect (true);
}
}