Skip to content

Commit 9b85a36

Browse files
authored
Merge pull request httpswift#446 from kbongort/FixLinuxTests
Import FoundationNetworking on Linux to fix tests.
2 parents 05b1df6 + 883d4e8 commit 9b85a36

4 files changed

Lines changed: 11 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ All notable changes to this project will be documented in this file. Changes not
3030
- Update `HttpParser` so it percent-encodes the URL components before initializing `URLComponents`. ([#423](https://github.com/httpswift/swifter/pull/423)) by [@nejcvivod](https://github.com/nejcvivod)
3131
- Update `SwifterTestsHttpParser` with a test for parsing bracketed query strings. ([#423](https://github.com/httpswift/swifter/pull/423)) by [@nejcvivod](https://github.com/nejcvivod)
3232
- Use `swift_version` CocoaPods DSL. ([#425](https://github.com/httpswift/swifter/pull/425)) by [@dnkoutso](https://github.com/dnkoutso)
33-
- Fix compiler warnings in Socket+File.swift for iOS, tvOS, and Linux platforms by using `withUnsafeBytes` rather than `&` to get a scoped UnsafeRawPointer.
33+
- Fix compiler warnings in Socket+File.swift for iOS, tvOS, and Linux platforms by using `withUnsafeBytes` rather than `&` to get a scoped UnsafeRawPointer ([#445](https://github.com/httpswift/swifter/pull/445)) by [@kbongort](https://github.com/kbongort).
34+
- Fix tests on linux by importing FoundationNetworking for NSURLSession APIs. ([#446](https://github.com/httpswift/swifter/pull/446)) by [@kbongort](https://github.com/kbongort)
3435

3536
# [1.4.7]
3637

XCode/Tests/IOSafetyTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
//
88

99
import XCTest
10+
#if os(Linux)
11+
import FoundationNetworking
12+
#endif
1013
@testable import Swifter
1114

1215
class IOSafetyTests: XCTestCase {

XCode/Tests/PingServer.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
//
88

99
import Foundation
10+
#if os(Linux)
11+
import FoundationNetworking
12+
#endif
1013
@testable import Swifter
1114

1215
// Server

XCode/Tests/ServerThreadingTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
//
88

99
import XCTest
10+
#if os(Linux)
11+
import FoundationNetworking
12+
#endif
1013
@testable import Swifter
1114

1215
class ServerThreadingTests: XCTestCase {

0 commit comments

Comments
 (0)