summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-02-07 00:38:03 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-02-07 00:38:03 +0900
commit4cf0bb742f079dcd75f676391a4e0af1bb176bdd (patch)
tree526cf4511556178bea97df1d1d58187254f41b86 /test
parentf910c6f782fe276a742a8b07b8c90d0c3ed31123 (diff)
Shuffle web-seeding URIs
Diffstat (limited to 'test')
-rw-r--r--test/DownloadHelperTest.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/DownloadHelperTest.cc b/test/DownloadHelperTest.cc
index edfa53ce..38871cc3 100644
--- a/test/DownloadHelperTest.cc
+++ b/test/DownloadHelperTest.cc
@@ -324,6 +324,7 @@ void DownloadHelperTest::testCreateRequestGroupForBitTorrent()
std::shared_ptr<RequestGroup> group = result[0];
auto uris =
group->getDownloadContext()->getFirstFileEntry()->getUris();
+ std::sort(std::begin(uris), std::end(uris));
// See -s option is ignored. See processRootDictionary() in
// bittorrent_helper.cc
CPPUNIT_ASSERT_EQUAL((size_t)3, uris.size());