summaryrefslogtreecommitdiff
path: root/test/DHTConnectionImplTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-01-05 16:01:46 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-01-05 16:01:46 +0000
commit4db349c1f32b4a313d12d114137432441633d00a (patch)
tree417451971e264834312cfd8339c79930d680a5d1 /test/DHTConnectionImplTest.cc
parent338e8aca09331d3e7fa4e1e8e1f9d10260986772 (diff)
2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Untabify. Fixed one line in copyright which is longer than 80 columns. * src * test
Diffstat (limited to 'test/DHTConnectionImplTest.cc')
-rw-r--r--test/DHTConnectionImplTest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/DHTConnectionImplTest.cc b/test/DHTConnectionImplTest.cc
index 9bc5b03a..15a66a16 100644
--- a/test/DHTConnectionImplTest.cc
+++ b/test/DHTConnectionImplTest.cc
@@ -36,7 +36,7 @@ void DHTConnectionImplTest::testWriteAndReadData()
std::string message1 = "hello world.";
// hostname should be "localhost", not 127.0.0.1. Test failed on Mac OSX10.5
con1.sendMessage(reinterpret_cast<const unsigned char*>(message1.c_str()),
- message1.size(), "localhost", con2port);
+ message1.size(), "localhost", con2port);
unsigned char readbuffer[100];
std::string remoteHost;
@@ -46,7 +46,7 @@ void DHTConnectionImplTest::testWriteAndReadData()
ssize_t rlength = con2.receiveMessage(readbuffer, sizeof(readbuffer), remoteHost, remotePort);
CPPUNIT_ASSERT_EQUAL((ssize_t)message1.size(), rlength);
CPPUNIT_ASSERT_EQUAL(message1,
- std::string(&readbuffer[0], &readbuffer[rlength]));
+ std::string(&readbuffer[0], &readbuffer[rlength]));
}
} catch(Exception& e) {
CPPUNIT_FAIL(e.stackTrace());