mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 19:10:20 +01:00
Remove try/catch. Exception is avoided by CPPUNI_IGNORE
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
@@ -85,21 +85,17 @@ void HTTPSStreamFactoryTest::testRedirect()
|
||||
|
||||
void HTTPSStreamFactoryTest::testProxy()
|
||||
{
|
||||
try {
|
||||
HTTPSTestServer server;
|
||||
HTTPSStreamFactory factory(
|
||||
Application::instance().config().getString("testsuite.proxy.host"),
|
||||
Application::instance().config().getInt("testsuite.proxy.port")
|
||||
);
|
||||
URI uri("https://secure.appinf.com/public/poco/NetSSL.txt");
|
||||
std::auto_ptr<std::istream> pStr(factory.open(uri));
|
||||
std::ostringstream ostr;
|
||||
StreamCopier::copyStream(*pStr.get(), ostr);
|
||||
assert(ostr.str().length() > 0);
|
||||
}
|
||||
catch (Poco::Net::HTTPException e) {
|
||||
std::cout << e.displayText() << std::endl;
|
||||
}
|
||||
HTTPSTestServer server;
|
||||
HTTPSStreamFactory factory(
|
||||
Application::instance().config().getString("testsuite.proxy.host"),
|
||||
Application::instance().config().getInt("testsuite.proxy.port")
|
||||
);
|
||||
URI uri("https://secure.appinf.com/public/poco/NetSSL.txt");
|
||||
std::auto_ptr<std::istream> pStr(factory.open(uri));
|
||||
std::ostringstream ostr;
|
||||
StreamCopier::copyStream(*pStr.get(), ostr);
|
||||
assert(ostr.str().length() > 0);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -139,7 +135,7 @@ CppUnit::Test* HTTPSStreamFactoryTest::suite()
|
||||
CppUnit_addTest(pSuite, HTTPSStreamFactoryTest, testEmptyPath);
|
||||
CppUnit_addTest(pSuite, HTTPSStreamFactoryTest, testRedirect);
|
||||
#ifdef FIXME
|
||||
should use a public proxy server
|
||||
testProxy should use a public proxy server
|
||||
http://www.publicproxyservers.com/proxy/list1.html
|
||||
Really working public proxy servers - page 1 of 6.
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user