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.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/storage/http_error.cpp b/test/storage/http_error.cpp
index 28e8573a2c..259ea825eb 100644
--- a/test/storage/http_error.cpp
+++ b/test/storage/http_error.cpp
@@ -13,7 +13,7 @@ TEST_F(Storage, HTTPTemporaryError) {
using namespace mbgl;
util::RunLoop loop;
- OnlineFileSource fs(nullptr);
+ OnlineFileSource fs;
const auto start = Clock::now();
@@ -26,8 +26,7 @@ TEST_F(Storage, HTTPTemporaryError) {
ASSERT_NE(nullptr, res.error);
EXPECT_EQ(Response::Error::Reason::Server, res.error->reason);
EXPECT_EQ("HTTP status code 500", res.error->message);
- ASSERT_TRUE(res.data.get());
- EXPECT_EQ("", *res.data);
+ ASSERT_FALSE(bool(res.data));
EXPECT_FALSE(bool(res.expires));
EXPECT_FALSE(bool(res.modified));
EXPECT_FALSE(bool(res.etag));
@@ -58,7 +57,7 @@ TEST_F(Storage, HTTPConnectionError) {
using namespace mbgl;
util::RunLoop loop;
- OnlineFileSource fs(nullptr);
+ OnlineFileSource fs;
const auto start = Clock::now();