From 952773209e7b92ca5230908872767b5d09cdc5fa Mon Sep 17 00:00:00 2001 From: Michael Grosse Huelsewiesche Date: Fri, 15 Nov 2024 16:09:08 -0500 Subject: [PATCH] Fixing networking errors in tests on linux --- Tests/Segment-Tests/Telemetry_Tests.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Tests/Segment-Tests/Telemetry_Tests.swift b/Tests/Segment-Tests/Telemetry_Tests.swift index 8b85e19..c25d47b 100644 --- a/Tests/Segment-Tests/Telemetry_Tests.swift +++ b/Tests/Segment-Tests/Telemetry_Tests.swift @@ -1,4 +1,8 @@ import XCTest +#if os(Linux) || os(Windows) +import FoundationNetworking +#endif + @testable import Segment class TelemetryTests: XCTestCase { @@ -163,4 +167,4 @@ class URLSessionMock: RestrictedHTTPSession { // Mock URLSessionDataTask class URLSessionDataTaskMock: URLSessionDataTask, @unchecked Sendable { override func resume() {} -} \ No newline at end of file +}