Skip to content

Commit 9d3a3c5

Browse files
authored
Check RemoteExecutor.IsSupported (#104862)
1 parent 5ab200c commit 9d3a3c5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/libraries/System.Net.Sockets/tests/FunctionalTests/TelemetryTest.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,16 @@ await RemoteExecutor.Invoke(static async (connectMethod, ipv6Str) =>
192192
}, connectMethod, ipv6.ToString()).DisposeAsync();
193193
}
194194

195-
[ConditionalTheory(typeof(Socket), nameof(Socket.OSSupportsUnixDomainSockets))]
195+
[ConditionalTheory(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
196196
[SkipOnPlatform(TestPlatforms.LinuxBionic, "SElinux blocks UNIX sockets in our CI environment")]
197197
[MemberData(nameof(SocketMethods_MemberData))]
198198
public async Task Socket_UDS_Success_ActivityRecorded(string connectMethod)
199199
{
200+
if (!Socket.OSSupportsUnixDomainSockets)
201+
{
202+
return;
203+
}
204+
200205
await RemoteExecutor.Invoke(static async connectMethod =>
201206
{
202207
Socket server = null;

0 commit comments

Comments
 (0)