Skip to content

Commit a4b4cf7

Browse files
author
Siarhei Fedartsou
committed
fix test
1 parent b27508c commit a4b4cf7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Tests/MapboxCoreNavigationTests/CLLocationTests.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class CLLocationTests: TestCase {
9292
speedAccuracy: speedAccuracy,
9393
timestamp: timestamp)
9494
}
95-
95+
#if compiler(>=5.5)
9696
if #available(iOS 15.0, *) {
9797
let sourceInfo = CLLocationSourceInformation(
9898
softwareSimulationState: true,
@@ -109,7 +109,8 @@ class CLLocationTests: TestCase {
109109
timestamp: timestamp,
110110
sourceInfo: sourceInfo)
111111
}
112-
112+
#endif
113+
113114
let fixLocation = FixLocation(location)
114115

115116
XCTAssertEqual(fixLocation.coordinate.latitude, coordinate.latitude)
@@ -125,10 +126,11 @@ class CLLocationTests: TestCase {
125126
XCTAssertEqual(fixLocation.bearingAccuracy?.doubleValue, bearingAccuracy)
126127
XCTAssertEqual(fixLocation.speedAccuracy?.doubleValue, speedAccuracy)
127128
}
128-
129+
#if compiler(>=5.5)
129130
if #available(iOS 15.0, *) {
130131
XCTAssertEqual(fixLocation.provider, "sim:1,acc:0")
131132
}
133+
#endif
132134
}
133135
}
134136

0 commit comments

Comments
 (0)