summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Guerra <fabian.guerra@mapbox.com>2019-10-07 16:27:50 -0700
committerFabian Guerra <fabian.guerra@mapbox.com>2019-10-07 16:27:50 -0700
commite440ad807658fc7be4538b7f10e792ac9cad1ec0 (patch)
tree32abf082bf95694f31bbe43c06844ceae9094770
parente9565c2aec1cb3709a2aec9b7fae761b2092bcf4 (diff)
downloadqtlocation-mapboxgl-e440ad807658fc7be4538b7f10e792ac9cad1ec0.tar.gz
[ios] Fix a network test issue caused when stopsRequests is set to YES.
-rw-r--r--platform/ios/test/MGLNetworkConfigurationTests.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/ios/test/MGLNetworkConfigurationTests.mm b/platform/ios/test/MGLNetworkConfigurationTests.mm
index 60d551cfee..54c29e79d3 100644
--- a/platform/ios/test/MGLNetworkConfigurationTests.mm
+++ b/platform/ios/test/MGLNetworkConfigurationTests.mm
@@ -55,5 +55,8 @@
// TODO: When the double linking framework fix lands this should be replaced to an equal assert
XCTAssertNotEqual([MGLNetworkConfiguration sharedManager].stopsRequests, offline);
+ // Resets to the default value in order to let other tests run properly
+ [MGLNetworkConfiguration sharedManager].stopsRequests = NO;
+
}
@end