Skip to content

Commit

Permalink
fix: skip no prefetch query test if version is low (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
joein committed Jul 8, 2024
1 parent bbe17b3 commit 318260a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion tests/congruence_tests/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
)
from tests.fixtures.filters import one_random_filter_please
from tests.fixtures.points import generate_random_sparse_vector, generate_random_multivector

from tests.utils import read_version

SECONDARY_COLLECTION_NAME = "congruence_secondary_collection"

Expand Down Expand Up @@ -614,6 +614,12 @@ def test_dense_query_lookup_from_negative():


def test_no_query_no_prefetch():
major, minor, patch, dev = read_version()
version_set = major is not None or dev
if version_set and not dev:
if major == 0 or (major == 1 and (minor < 10 or (minor == 10 and patch == 0))):
pytest.skip("Works as of version 1.10.1")

fixture_points = generate_fixtures()

searcher = TestSimpleSearcher()
Expand Down
4 changes: 2 additions & 2 deletions tests/integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ done
# Backwards compatibility tests are enabled by setting QDRANT_VERSION to a version that is not the latest
# OR by setting IGNORE_CONGRUENCE_TESTS to true
if [[ "$QDRANT_VERSION" != "$QDRANT_LATEST" ]] || [[ "$IGNORE_CONGRUENCE_TESTS" == "true" ]]; then
pytest --ignore=tests/congruence_tests
QDRANT_VERSION=$QDRANT_VERSION pytest --ignore=tests/congruence_tests
else
pytest
QDRANT_VERSION=$QDRANT_VERSION pytest
fi


Expand Down

0 comments on commit 318260a

Please sign in to comment.