summaryrefslogtreecommitdiff
path: root/test/RequestTest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/RequestTest.cc')
-rw-r--r--test/RequestTest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/RequestTest.cc b/test/RequestTest.cc
index 807ec821..24b597ef 100644
--- a/test/RequestTest.cc
+++ b/test/RequestTest.cc
@@ -402,7 +402,8 @@ void RequestTest::testSetUrl_username()
CPPUNIT_ASSERT_EQUAL(std::string("localhost"), req.getHost());
CPPUNIT_ASSERT_EQUAL(std::string("/download"), req.getDir());
CPPUNIT_ASSERT_EQUAL(std::string("aria2-1.0.0.tar.bz2"), req.getFile());
- CPPUNIT_ASSERT_EQUAL(std::string("aria2user"), req.getUsername());
+ // No ":" is foundin 'aria2user', so username and password is left blank.
+ CPPUNIT_ASSERT_EQUAL(std::string(""), req.getUsername());
CPPUNIT_ASSERT_EQUAL(std::string(""), req.getPassword());
}