Skip to content

Commit

Permalink
Check RemoteExecutor.IsSupported (#104862)
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo authored Jul 14, 2024
1 parent 5ab200c commit 9d3a3c5
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,16 @@ await RemoteExecutor.Invoke(static async (connectMethod, ipv6Str) =>
}, connectMethod, ipv6.ToString()).DisposeAsync();
}

[ConditionalTheory(typeof(Socket), nameof(Socket.OSSupportsUnixDomainSockets))]
[ConditionalTheory(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "SElinux blocks UNIX sockets in our CI environment")]
[MemberData(nameof(SocketMethods_MemberData))]
public async Task Socket_UDS_Success_ActivityRecorded(string connectMethod)
{
if (!Socket.OSSupportsUnixDomainSockets)
{
return;
}

await RemoteExecutor.Invoke(static async connectMethod =>
{
Socket server = null;
Expand Down

0 comments on commit 9d3a3c5

Please sign in to comment.