From 900d102bbf36fa23329c3ce371a570b7865fa47f Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 10 Feb 2009 14:52:20 +0000 Subject: [PATCH] 2009-02-10 Tatsuhiro Tsujikawa Use localhost instead of 127.0.0.1. * test/DHTConnectionImplTest.cc --- ChangeLog | 5 +++++ test/DHTConnectionImplTest.cc | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5932ccc3..fa5de843 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-02-10 Tatsuhiro Tsujikawa + + Use localhost instead of 127.0.0.1. + * test/DHTConnectionImplTest.cc + 2009-02-10 Tatsuhiro Tsujikawa Suppressed compiler warning. diff --git a/test/DHTConnectionImplTest.cc b/test/DHTConnectionImplTest.cc index e920d429..9bc5b03a 100644 --- a/test/DHTConnectionImplTest.cc +++ b/test/DHTConnectionImplTest.cc @@ -34,8 +34,9 @@ void DHTConnectionImplTest::testWriteAndReadData() CPPUNIT_ASSERT(con2.bind(con2port)); std::string message1 = "hello world."; + // hostname should be "localhost", not 127.0.0.1. Test failed on Mac OSX10.5 con1.sendMessage(reinterpret_cast(message1.c_str()), - message1.size(), "127.0.0.1", con2port); + message1.size(), "localhost", con2port); unsigned char readbuffer[100]; std::string remoteHost;