File tree Expand file tree Collapse file tree
Tests/SwiftMetricsRESTTests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ matrix:
4747 - os : osx
4848 osx_image : xcode10.2
4949 sudo : required
50+ - os : osx
51+ osx_image : xcode11
52+ sudo : required
53+ env : SWIFT_SNAPSHOT=5.1
5054 - os : osx
5155 osx_image : xcode10.1
5256 sudo : required
Original file line number Diff line number Diff line change @@ -26,6 +26,12 @@ import Foundation
2626import Dispatch
2727import Configuration
2828
29+ #if swift( >= 4 . 1 )
30+ #if canImport( FoundationNetworking )
31+ import FoundationNetworking
32+ #endif
33+ #endif
34+
2935/*
3036 #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
3137 import CommonCrypto
Original file line number Diff line number Diff line change @@ -23,6 +23,12 @@ import SwiftMetrics
2323import SwiftMetricsKitura
2424import SwiftBAMDC
2525
26+ #if swift( >= 4 . 1 )
27+ #if canImport( FoundationNetworking )
28+ import FoundationNetworking
29+ #endif
30+ #endif
31+
2632fileprivate struct HttpStats {
2733 fileprivate var count : Double = 0
2834 fileprivate var duration : Double = 0
Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ import Configuration
2020import Foundation
2121@ testable import SwiftMetricsREST
2222
23+ #if swift( >= 4 . 1 )
24+ #if canImport( FoundationNetworking )
25+ import FoundationNetworking
26+ #endif
27+ #endif
28+
2329class SwiftMetricsRESTTests : XCTestCase {
2430
2531 let collectionsSubpath = " /swiftmetrics/api/v1/collections "
You can’t perform that action at this time.
0 commit comments