diff options
Diffstat (limited to 'test/storage/http_error.cpp')
-rw-r--r-- | test/storage/http_error.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/storage/http_error.cpp b/test/storage/http_error.cpp index eeb8117a09..be2811cd06 100644 --- a/test/storage/http_error.cpp +++ b/test/storage/http_error.cpp @@ -47,7 +47,10 @@ TEST_F(Storage, HTTPError) { EXPECT_GT(1.7, duration) << "Resource wasn't retried the correct number of times"; EXPECT_EQ(Response::Error, res.status); #ifdef MBGL_HTTP_NSURL - EXPECT_STREQ(res.message.c_str(), "The operation couldn’t be completed. (NSURLErrorDomain error -1004.)"); + EXPECT_TRUE(res.message == + "The operation couldn’t be completed. (NSURLErrorDomain error -1004.)" || + res.message == "Could not connect to the server.") + << "Full message is: \"" << res.message << "\""; #elif MBGL_HTTP_CURL const std::string prefix { "Couldn't connect to server: " }; EXPECT_STREQ(prefix.c_str(), res.message.substr(0, prefix.size()).c_str()) << "Full message is: \"" << res.message << "\""; |