Skip to content

Commit 85fdd89

Browse files
zxqfd555-pwManul from Pathway
authored andcommitted
make qdrant tests runnable in jenkins (#9399)
GitOrigin-RevId: d1480b640302062f52124e742b4a0a0ab9aae726
1 parent d4261ee commit 85fdd89

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

integration_tests/stdlib/test_qdrant_knn.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
from pathway.engine import ExternalIndexFactory
77
from pathway.tests.utils import assert_table_equality
88

9+
QDRANT_URL = "http://qdrant:6334"
10+
911

1012
def make_list(vector_as_str: str) -> list[float]:
1113
return [float(x) for x in vector_as_str.split(",")]
@@ -42,7 +44,7 @@ def test_basic_search():
4244
).with_columns(data=pw.apply_with_type(make_list, list[float], pw.this.data))
4345

4446
index_factory = ExternalIndexFactory.qdrant_factory(
45-
url="http://localhost:6334",
47+
url=QDRANT_URL,
4648
collection_name="test_basic",
4749
vector_size=3,
4850
)
@@ -91,7 +93,7 @@ def test_with_deletions():
9193
).with_columns(data=pw.apply_with_type(make_list, list[float], pw.this.data))
9294

9395
index_factory = ExternalIndexFactory.qdrant_factory(
94-
url="http://localhost:6334",
96+
url=QDRANT_URL,
9597
collection_name="test_deletions",
9698
vector_size=3,
9799
)
@@ -153,7 +155,7 @@ class QuerySchemaWithFilter(pw.Schema):
153155
).with_columns(data=pw.apply(make_list, pw.this.data))
154156

155157
index_factory = ExternalIndexFactory.qdrant_factory(
156-
url="http://localhost:6334",
158+
url=QDRANT_URL,
157159
collection_name="test_filter",
158160
vector_size=3,
159161
)

0 commit comments

Comments
 (0)