Skip to content

Commit abc4a02

Browse files
authored
Merge pull request #446 from kbongort/FixLinuxTests
Import FoundationNetworking on Linux to fix tests.
2 parents 425f28b + 52a4bc8 commit abc4a02

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

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)