Remove Environment::terminate and associated code

Fixes #1336
This commit is contained in:
John Firebaugh
2015-04-27 13:05:30 -07:00
parent 8e5fa341eb
commit c0b75f1af7
24 changed files with 42 additions and 193 deletions

View File

@@ -11,8 +11,6 @@ TEST_F(Storage, HTTPLoad) {
DefaultFileSource fs(nullptr);
auto &env = *static_cast<const Environment *>(nullptr);
const int concurrency = 50;
const int max = 10000;
int number = 1;
@@ -21,7 +19,7 @@ TEST_F(Storage, HTTPLoad) {
const auto current = number++;
fs.request({ Resource::Unknown,
std::string("http://127.0.0.1:3000/load/") + std::to_string(current) },
uv_default_loop(), env, [&, current](const Response &res) {
uv_default_loop(), [&, current](const Response &res) {
EXPECT_EQ(Response::Successful, res.status);
EXPECT_EQ(std::string("Request ") + std::to_string(current), res.data);
EXPECT_EQ(0, res.expires);