We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d117efb commit beeb029Copy full SHA for beeb029
tests/test-mongoc-cursor.c
@@ -904,6 +904,12 @@ test_tailable_alive (void)
904
905
/* still alive */
906
ASSERT (mongoc_cursor_is_alive (cursor));
907
+ ASSERT (mongoc_cursor_more (cursor));
908
+
909
+ /* no next document, but still alive and could return more in the future */
910
+ ASSERT (!mongoc_cursor_next (cursor, &doc));
911
+ ASSERT (mongoc_cursor_is_alive (cursor));
912
913
914
mongoc_cursor_destroy (cursor);
915
mongoc_collection_destroy (collection);
0 commit comments