summaryrefslogtreecommitdiff
path: root/test/BtPostDownloadHandlerTest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/BtPostDownloadHandlerTest.cc')
-rw-r--r--test/BtPostDownloadHandlerTest.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/BtPostDownloadHandlerTest.cc b/test/BtPostDownloadHandlerTest.cc
index 3dff44cb..467b82ab 100644
--- a/test/BtPostDownloadHandlerTest.cc
+++ b/test/BtPostDownloadHandlerTest.cc
@@ -82,6 +82,9 @@ void BtPostDownloadHandlerTest::testGetNextRequestGroups()
bittorrent::getInfoHashString(groups.front()->getDownloadContext()));
CPPUNIT_ASSERT(std::find(rg.followedBy().begin(), rg.followedBy().end(),
groups.front()->getGID()) != rg.followedBy().end());
+ for (auto& nrg : groups) {
+ CPPUNIT_ASSERT_EQUAL(rg.getGID(), nrg->following());
+ }
}
} // namespace aria2