TestRequest(const std::string& url, const std::string method = "GET") :
HTTP::Request(url, method),
- complete(false)
+ complete(false),
+ failed(false)
{
}
// test connectToHost failure
// causes timeout on Jenkins slaves
-#if 0
+#if 1
{
TestRequest* tr = new TestRequest("http://not.found/something");
HTTP::Request_ptr own(tr);
}
#endif
+ cout << "testing abrupt close" << endl;
// test server-side abrupt close
{
TestRequest* tr = new TestRequest("http://localhost:2000/test_abrupt_close");
COMPARE(tr->responseCode(), 500);
}
+cout << "testing proxy close" << endl;
// test proxy
{
cl.setProxy("localhost", 2000);