Skip to content

Commit 953beb7

Browse files
committed
Conditionalize imports in SSEClientTransportTests
1 parent d46abe2 commit 953beb7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Tests/MCPTests/SSEClientTransportTests.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import EventSource
2-
@preconcurrency import Foundation
3-
import Logging
4-
import Testing
1+
#if swift(>=6.1) && !os(Linux)
2+
import EventSource
3+
@preconcurrency import Foundation
4+
import Logging
5+
import Testing
56

6-
@testable import MCP
7+
@testable import MCP
78

8-
#if swift(>=6.1) && !os(Linux)
99
final class MockSSEURLProtocol: URLProtocol, @unchecked Sendable {
1010
static let requestHandlerStorage = RequestHandlerStorage()
1111
private var loadingTask: Task<Void, Swift.Error>?

0 commit comments

Comments
 (0)