Skip to content

Commit

Permalink
add platform to two tests to avoid test skip on Unix (dotnet#36082)
Browse files Browse the repository at this point in the history
  • Loading branch information
wfurt authored May 9, 2020
1 parent 386ee46 commit 5e5a22d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public void Socket_KeepAlive_RetryCount_Success()
}

[ConditionalFact(typeof(KeepAliveTest), nameof(IsWindowsBelow1703))] // RetryCount not supported by earlier versions of Windows
[PlatformSpecific(TestPlatforms.Windows)]
public void Socket_KeepAlive_RetryCount_Failure()
{
using (Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ public void UnixDomainSocketEndPoint_UsingAbstractSocketAddressOnUnsupported_Thr
}

[ConditionalFact(nameof(IsSubWindows10))]
[PlatformSpecific(TestPlatforms.Windows)]
public void Socket_CreateUnixDomainSocket_Throws_OnWindows()
{
AssertExtensions.Throws<ArgumentNullException>("path", () => new UnixDomainSocketEndPoint(null));
Expand Down

0 comments on commit 5e5a22d

Please sign in to comment.