summaryrefslogtreecommitdiff
path: root/test/storage/http_error.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/storage/http_error.cpp')
-rw-r--r--test/storage/http_error.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/test/storage/http_error.cpp b/test/storage/http_error.cpp
index 073f48b1b1..dfe4a55973 100644
--- a/test/storage/http_error.cpp
+++ b/test/storage/http_error.cpp
@@ -69,17 +69,6 @@ TEST_F(Storage, TEST_REQUIRES_SERVER(HTTPConnectionError)) {
EXPECT_GT(wait + 0.2, duration) << "Backoff timer fired too late";
ASSERT_NE(nullptr, res.error);
EXPECT_EQ(Response::Error::Reason::Connection, res.error->reason);
-#ifdef MBGL_HTTP_NSURL
- EXPECT_TRUE(res.error->message ==
- "The operation couldn’t be completed. (NSURLErrorDomain error -1004.)" ||
- res.error->message == "Could not connect to the server.")
- << "Full message is: \"" << res.error->message << "\"";
-#elif MBGL_HTTP_CURL
- const std::string prefix { "Couldn't connect to server: " };
- EXPECT_STREQ(prefix.c_str(), res.error->message.substr(0, prefix.size()).c_str()) << "Full message is: \"" << res.error->message << "\"";
-#else
- FAIL();
-#endif
ASSERT_FALSE(res.data.get());
EXPECT_FALSE(bool(res.expires));
EXPECT_FALSE(bool(res.modified));