Skip to content

Commit 505df24

Browse files
authored
Temporarily disable flaky test
1 parent 3a07cf3 commit 505df24

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tests/v2_tests/test_recommend.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,13 @@ def test_recommend_rerank_depth_behavior(self):
151151
)
152152
self.assertEqual(len(res["hits"]), 3)
153153

154-
# Case 2: offset > rerank_depth — offset + limit is higher, result must be present
155-
with self.subTest(case="offset_beyond_rerank_depth"):
156-
res = self.client.index(test_index_name).recommend(
157-
documents=["doc_0", "doc_1"], limit=1, offset=3, rerank_depth=2
158-
)
159-
self.assertEqual(len(res["hits"]), 1)
154+
# TODO: figure out why this test is flaky and fix it (potentially due to weird cluster creation interaction)
155+
# # Case 2: offset > rerank_depth — offset + limit is higher, result must be present
156+
# with self.subTest(case="offset_beyond_rerank_depth"):
157+
# res = self.client.index(test_index_name).recommend(
158+
# documents=["doc_0", "doc_1"], limit=1, offset=3, rerank_depth=2
159+
# )
160+
# self.assertEqual(len(res["hits"]), 1)
160161

161162
# Case 3: offset + result_count <= rerank_depth → return all requested hits
162163
with self.subTest(case="offset_within_rerank_depth"):

0 commit comments

Comments
 (0)