summaryrefslogtreecommitdiff
path: root/test/storage/http_other_loop.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-04-27 13:05:30 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-04-28 09:16:26 -0400
commitc0b75f1af77e78e309cb18807de74f3788488a7a (patch)
tree3a98bb801f7c622c6443dd445836e4528a30682c /test/storage/http_other_loop.cpp
parent8e5fa341ebdc1699f08a1dbf4b0dfd98a9969948 (diff)
downloadqtlocation-mapboxgl-c0b75f1af77e78e309cb18807de74f3788488a7a.tar.gz
Remove Environment::terminate and associated code
Fixes #1336
Diffstat (limited to 'test/storage/http_other_loop.cpp')
-rw-r--r--test/storage/http_other_loop.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/storage/http_other_loop.cpp b/test/storage/http_other_loop.cpp
index 9ad673cf79..64612f13df 100644
--- a/test/storage/http_other_loop.cpp
+++ b/test/storage/http_other_loop.cpp
@@ -12,9 +12,7 @@ TEST_F(Storage, HTTPOtherLoop) {
// This file source launches a separate thread to do the processing.
DefaultFileSource fs(nullptr);
- auto &env = *static_cast<const Environment *>(nullptr);
-
- fs.request({ Resource::Unknown, "http://127.0.0.1:3000/test" }, uv_default_loop(), env,
+ fs.request({ Resource::Unknown, "http://127.0.0.1:3000/test" }, uv_default_loop(),
[&](const Response &res) {
EXPECT_EQ(Response::Successful, res.status);
EXPECT_EQ("Hello World!", res.data);