Skip to content

Commit c986daf

Browse files
committed
Fix max_iterations test
1 parent c696042 commit c986daf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/contrib/index/test_query_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def test_respects_max_iterations(self):
312312

313313
qs = self.make_qs(documents, overfetch_multiplier=1, max_overfetch_iterations=2)
314314
qs = qs[0:10]
315-
qs._fetch_batch = mock.Mock(return_value=[documents[0]])
315+
qs._fetch_batch = mock.Mock(return_value=documents)
316316

317317
list(qs.run_query())
318318

0 commit comments

Comments
 (0)