summaryrefslogtreecommitdiffstats
path: root/test/feedcontainer.cpp
diff options
context:
space:
mode:
authorAlexander Batischev <eual.jp@gmail.com>2020-09-04 19:53:18 +0300
committerAlexander Batischev <eual.jp@gmail.com>2020-09-04 20:15:18 +0300
commit2c259672c57066d1f126be2796ff72bb3bd734f4 (patch)
tree95011fc9085442b0277b1e578bd721ca9a4890c6 /test/feedcontainer.cpp
parent07f1db05466f37c7c4258e668e0a6fa966e2ff0d (diff)
Make FeedContainer::mark_all_feed_items_read() take RssFeed
This is another stepping stone to fixing the race spotted by @dennisschagt: https://github.com/newsboat/newsboat/pull/1166#discussion_r483483403
Diffstat (limited to 'test/feedcontainer.cpp')
-rw-r--r--test/feedcontainer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/feedcontainer.cpp b/test/feedcontainer.cpp
index 2fc03b36..3a4da8f9 100644
--- a/test/feedcontainer.cpp
+++ b/test/feedcontainer.cpp
@@ -620,7 +620,7 @@ TEST_CASE("mark_all_feed_items_read() marks all of feed's items as read",
}
feedcontainer.set_feeds(feeds);
- feedcontainer.mark_all_feed_items_read(0);
+ feedcontainer.mark_all_feed_items_read(feed);
for (const auto& item : feed->items()) {
REQUIRE_FALSE(item->unread());