diff --git a/test/library_server.cpp b/test/library_server.cpp
index 5cba0eeb3..405df90ac 100644
--- a/test/library_server.cpp
+++ b/test/library_server.cpp
@@ -358,6 +358,26 @@ TEST_F(LibraryServerTest, catalog_search_by_language)
TEST_F(LibraryServerTest, catalog_search_results_pagination)
{
{
+ // count=-1 disables the limit on the number of results
+ const auto r = zfs1_->GET("/ROOT%23%3F/catalog/search?count=-1");
+ EXPECT_EQ(r->status, 200);
+ EXPECT_EQ(maskVariableOPDSFeedData(r->body),
+ OPDS_FEED_TAG
+ "