From: James Turner Date: Wed, 6 Jan 2016 18:57:04 +0000 (-0600) Subject: Linux test_HTTP fixes. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b5d6aa3fe4c44ecbee7f6a0b679247514fc622be;p=simgear.git Linux test_HTTP fixes. --- diff --git a/simgear/io/test_HTTP.cxx b/simgear/io/test_HTTP.cxx index 2442682f..d8b0f939 100644 --- a/simgear/io/test_HTTP.cxx +++ b/simgear/io/test_HTTP.cxx @@ -58,7 +58,8 @@ public: TestRequest(const std::string& url, const std::string method = "GET") : HTTP::Request(url, method), - complete(false) + complete(false), + failed(false) { } @@ -663,7 +664,7 @@ int main(int argc, char* argv[]) // 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); @@ -673,6 +674,7 @@ int main(int argc, char* argv[]) } #endif + cout << "testing abrupt close" << endl; // test server-side abrupt close { TestRequest* tr = new TestRequest("http://localhost:2000/test_abrupt_close"); @@ -682,6 +684,7 @@ int main(int argc, char* argv[]) COMPARE(tr->responseCode(), 500); } +cout << "testing proxy close" << endl; // test proxy { cl.setProxy("localhost", 2000);