summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2022-04-03 18:53:56 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2022-04-03 18:54:40 +0900
commitc651d563d079f54c47ab8dd87061f662881a2e19 (patch)
treef6fae1943070cb02117628a664f1642f0153909d /test
parentd8c5f74c1cae336601ece560e4476cc4f4680568 (diff)
Fix a failed test
Diffstat (limited to 'test')
-rw-r--r--test/BittorrentHelperTest.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/BittorrentHelperTest.cc b/test/BittorrentHelperTest.cc
index 2ad44808..4b3f0646 100644
--- a/test/BittorrentHelperTest.cc
+++ b/test/BittorrentHelperTest.cc
@@ -329,6 +329,7 @@ void BittorrentHelperTest::testGetPeerId()
void BittorrentHelperTest::testGetPeerAgent()
{
+ setStaticPeerAgent("");
std::string peerAgent = generateStaticPeerAgent("aria2/-1.-1.-1");
CPPUNIT_ASSERT_EQUAL(std::string("aria2/-1.-1.-1"), peerAgent);
CPPUNIT_ASSERT_EQUAL(std::string("aria2/-1.-1.-1"),