more Net testsuite fixes

This commit is contained in:
Guenter Obiltschnig 2016-11-09 13:04:40 +01:00
parent 696a9de502
commit f38a1a38de
3 changed files with 9 additions and 9 deletions

View File

@ -44,7 +44,7 @@ void HTTPStreamFactoryTest::testNoRedirect()
{
HTTPTestServer server;
HTTPStreamFactory factory;
URI uri("http://localhost/large");
URI uri("http://127.0.0.1/large");
uri.setPort(server.port());
std::auto_ptr<std::istream> pStr(factory.open(uri));
std::ostringstream ostr;
@ -57,7 +57,7 @@ void HTTPStreamFactoryTest::testEmptyPath()
{
HTTPTestServer server;
HTTPStreamFactory factory;
URI uri("http://localhost");
URI uri("http://127.0.0.1");
uri.setPort(server.port());
std::auto_ptr<std::istream> pStr(factory.open(uri));
std::ostringstream ostr;
@ -71,7 +71,7 @@ void HTTPStreamFactoryTest::testRedirect()
HTTPTestServer server;
Poco::URIStreamOpener opener;
opener.registerStreamFactory("http", new HTTPStreamFactory);
URI uri("http://localhost/redirect");
URI uri("http://127.0.0.1/redirect");
uri.setPort(server.port());
std::auto_ptr<std::istream> pStr(opener.open(uri));
std::ostringstream ostr;
@ -83,7 +83,7 @@ void HTTPStreamFactoryTest::testRedirect()
void HTTPStreamFactoryTest::testProxy()
{
HTTPTestServer server;
HTTPStreamFactory factory("localhost", server.port());
HTTPStreamFactory factory("127.0.0.1", server.port());
URI uri("http://www.somehost.com/large");
std::auto_ptr<std::istream> pStr(factory.open(uri));
std::ostringstream ostr;
@ -96,7 +96,7 @@ void HTTPStreamFactoryTest::testError()
{
HTTPTestServer server;
HTTPStreamFactory factory;
URI uri("http://localhost/notfound");
URI uri("http://127.0.0.1/notfound");
uri.setPort(server.port());
try
{

View File

@ -130,7 +130,7 @@ void SocketAddressTest::testSocketAddress()
try
{
SocketAddress sa12(SocketAddress::IPv6, "www6.pocoproject.org", 80);
assert (sa12.host().toString() == "[2001:4801:7819:74:be76:4eff:fe10:6b73]");
assert (sa12.host().toString() == "2001:4801:7819:74:be76:4eff:fe10:6b73");
}
catch (AddressFamilyMismatchException&)
{

View File

@ -125,7 +125,7 @@ SyslogTest::~SyslogTest()
void SyslogTest::testListener()
{
Poco::AutoPtr<RemoteSyslogChannel> channel = new RemoteSyslogChannel();
channel->setProperty("loghost", "localhost:51400");
channel->setProperty("loghost", "127.0.0.1:51400");
channel->open();
Poco::AutoPtr<RemoteSyslogListener> listener = new RemoteSyslogListener(51400);
listener->open();
@ -150,7 +150,7 @@ void SyslogTest::testListener()
void SyslogTest::testChannelOpenClose()
{
Poco::AutoPtr<RemoteSyslogChannel> channel = new RemoteSyslogChannel();
channel->setProperty("loghost", "localhost:51400");
channel->setProperty("loghost", "127.0.0.1:51400");
channel->open();
Poco::AutoPtr<RemoteSyslogListener> listener = new RemoteSyslogListener(51400);
listener->open();
@ -189,7 +189,7 @@ void SyslogTest::testChannelOpenClose()
void SyslogTest::testOldBSD()
{
Poco::AutoPtr<RemoteSyslogChannel> channel = new RemoteSyslogChannel();
channel->setProperty("loghost", "localhost:51400");
channel->setProperty("loghost", "127.0.0.1:51400");
channel->setProperty("format", "bsd");
channel->open();
Poco::AutoPtr<RemoteSyslogListener> listener = new RemoteSyslogListener(51400);