Skip to content

Commit

Permalink
Fixing networking errors in tests on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelGHSeg committed Nov 15, 2024
1 parent e514764 commit 9527732
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Tests/Segment-Tests/Telemetry_Tests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import XCTest
#if os(Linux) || os(Windows)
import FoundationNetworking
#endif

@testable import Segment

class TelemetryTests: XCTestCase {
Expand Down Expand Up @@ -163,4 +167,4 @@ class URLSessionMock: RestrictedHTTPSession {
// Mock URLSessionDataTask
class URLSessionDataTaskMock: URLSessionDataTask, @unchecked Sendable {
override func resume() {}
}
}

0 comments on commit 9527732

Please sign in to comment.