From 78f1d887af319e718a0759a5edd25be431441c1a Mon Sep 17 00:00:00 2001 From: Michael Grosse Huelsewiesche Date: Fri, 15 Nov 2024 16:22:22 -0500 Subject: [PATCH] Excluding network-related tests on windows/linux --- Tests/Segment-Tests/Telemetry_Tests.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/Segment-Tests/Telemetry_Tests.swift b/Tests/Segment-Tests/Telemetry_Tests.swift index c25d47b..a182b33 100644 --- a/Tests/Segment-Tests/Telemetry_Tests.swift +++ b/Tests/Segment-Tests/Telemetry_Tests.swift @@ -1,7 +1,5 @@ +#if !os(Linux) && !os(Windows) import XCTest -#if os(Linux) || os(Windows) -import FoundationNetworking -#endif @testable import Segment @@ -168,3 +166,5 @@ class URLSessionMock: RestrictedHTTPSession { class URLSessionDataTaskMock: URLSessionDataTask, @unchecked Sendable { override func resume() {} } + +#endif