From 6a30658d8f10a64c3e434317350762640806f621 Mon Sep 17 00:00:00 2001 From: dylan Date: Fri, 11 Oct 2024 10:31:05 -0700 Subject: [PATCH] try a test run without sorting vector search results --- tests/standard/aio/test_vector_client_search_by_key.py | 2 +- tests/standard/aio/test_vector_search.py | 2 +- tests/standard/sync/test_vector_client_search_by_key.py | 2 +- tests/standard/sync/test_vector_search.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/standard/aio/test_vector_client_search_by_key.py b/tests/standard/aio/test_vector_client_search_by_key.py index c7493f42..54aa2a68 100644 --- a/tests/standard/aio/test_vector_client_search_by_key.py +++ b/tests/standard/aio/test_vector_client_search_by_key.py @@ -306,7 +306,7 @@ async def test_vector_search_by_key( exclude_fields=test_case.exclude_fields, ) - assert list.sort(results) == list.sort(test_case.expected_results) + assert results == test_case.expected_results tasks = [] for key in test_case.record_data: diff --git a/tests/standard/aio/test_vector_search.py b/tests/standard/aio/test_vector_search.py index 2ca582ac..88cab272 100644 --- a/tests/standard/aio/test_vector_search.py +++ b/tests/standard/aio/test_vector_search.py @@ -137,7 +137,7 @@ async def test_vector_search( exclude_fields=test_case.exclude_fields, ) - assert list.sort(results) == list.sort(test_case.expected_results) + assert results == test_case.expected_results tasks = [] for key in test_case.record_data: diff --git a/tests/standard/sync/test_vector_client_search_by_key.py b/tests/standard/sync/test_vector_client_search_by_key.py index 1b96d531..40db89e3 100644 --- a/tests/standard/sync/test_vector_client_search_by_key.py +++ b/tests/standard/sync/test_vector_client_search_by_key.py @@ -300,7 +300,7 @@ def test_vector_search_by_key( exclude_fields=test_case.exclude_fields, ) - assert list.sort(results) == list.sort(test_case.expected_results) + assert results == test_case.expected_results for key in test_case.record_data: session_vector_client.delete( diff --git a/tests/standard/sync/test_vector_search.py b/tests/standard/sync/test_vector_search.py index 2720f091..5648c6fb 100644 --- a/tests/standard/sync/test_vector_search.py +++ b/tests/standard/sync/test_vector_search.py @@ -132,7 +132,7 @@ def test_vector_search( exclude_fields=test_case.exclude_fields, ) - assert list.sort(results) == list.sort(test_case.expected_results) + assert results == test_case.expected_results for key in test_case.record_data: session_vector_client.delete(