diff options
author | Marek Safar <marek.safar@gmail.com> | 2017-02-23 13:33:05 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2017-02-23 14:30:42 +0300 |
commit | 421088dfcee556c01b407a61eee1895532dfe9a4 (patch) | |
tree | 48d3d61276851a3093bd3a2f44ff69b7233525fe | |
parent | 8e7cae914be47d832490bbc37693e9aa42686a80 (diff) |
[System] Tweak socket test
-rwxr-xr-x | mcs/class/System/Test/System.Net.Sockets/SocketTest.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mcs/class/System/Test/System.Net.Sockets/SocketTest.cs b/mcs/class/System/Test/System.Net.Sockets/SocketTest.cs index 5473cf3916b..6e82f9d6db8 100755 --- a/mcs/class/System/Test/System.Net.Sockets/SocketTest.cs +++ b/mcs/class/System/Test/System.Net.Sockets/SocketTest.cs @@ -4541,10 +4541,8 @@ namespace MonoTests.System.Net.Sockets mSent.Set (); }, clientSocket); - if (!mSent.WaitOne (1500)) - throw new TimeoutException (); - if (!mReceived.WaitOne (1500)) - throw new TimeoutException (); + Assert.IsTrue (mSent.WaitOne (5000), "#1"); + Assert.IsTrue (mReceived.WaitOne (5000), "#2"); } finally { if (File.Exists (temp)) File.Delete (temp); |