From bd7d06e6c02cdac3a3acdc2aa32c8066a7f9225a Mon Sep 17 00:00:00 2001 From: Guilherme Souza Date: Tue, 19 Mar 2024 15:12:09 +0700 Subject: [PATCH] Fix build for Windows and Linux --- Tests/RealtimeTests/MockWebSocketClient.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/RealtimeTests/MockWebSocketClient.swift b/Tests/RealtimeTests/MockWebSocketClient.swift index 84ab2f58..a6431f77 100644 --- a/Tests/RealtimeTests/MockWebSocketClient.swift +++ b/Tests/RealtimeTests/MockWebSocketClient.swift @@ -10,6 +10,10 @@ import Foundation @testable import Realtime import XCTestDynamicOverlay +#if canImport(FoundationNetworking) + import FoundationNetworking +#endif + final class MockWebSocketClient: WebSocketClient { let sentMessages = LockIsolated<[RealtimeMessageV2]>([]) func send(_ message: RealtimeMessageV2) async throws {