Skip to content

Commit

Permalink
DO NOT MERGE: Repro for macOS failure
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub committed Mar 3, 2017
1 parent d622dd4 commit dfba21c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/System.Net.Sockets/tests/FunctionalTests/SendReceive.cs
Expand Up @@ -473,9 +473,14 @@ public void SendRecvPollSync_TcpListener_Socket(IPAddress listenAt, bool pollBef
}
}

[ActiveIssue(13778, TestPlatforms.OSX)]
[Fact]
public async Task SendRecv_0ByteReceive_Success()
public static IEnumerable<object[]> Iterations()
{
for (int i = 0; i < 1000; i++) yield return new object[] { i };
}

[Theory]
[MemberData(nameof(Iterations))]
public async Task SendRecv_0ByteReceive_Success(int iter)
{
using (Socket listener = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
using (Socket client = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
Expand Down

0 comments on commit dfba21c

Please sign in to comment.