瀏覽代碼

Import FoundationNetworking on Linux to fix tests.

Kenneth Bongort 6 年之前
父節點
當前提交
4d27d650be
共有 3 個文件被更改,包括 9 次插入0 次删除
  1. 3 0
      XCode/Tests/IOSafetyTests.swift
  2. 3 0
      XCode/Tests/PingServer.swift
  3. 3 0
      XCode/Tests/ServerThreadingTests.swift

+ 3 - 0
XCode/Tests/IOSafetyTests.swift

@@ -7,6 +7,9 @@
 //
 
 import XCTest
+#if os(Linux)
+import FoundationNetworking
+#endif
 @testable import Swifter
 
 class IOSafetyTests: XCTestCase {

+ 3 - 0
XCode/Tests/PingServer.swift

@@ -7,6 +7,9 @@
 //
 
 import Foundation
+#if os(Linux)
+import FoundationNetworking
+#endif
 @testable import Swifter
 
 // Server

+ 3 - 0
XCode/Tests/ServerThreadingTests.swift

@@ -7,6 +7,9 @@
 //
 
 import XCTest
+#if os(Linux)
+import FoundationNetworking
+#endif
 @testable import Swifter
 
 class ServerThreadingTests: XCTestCase {