Skip to content

Commit

Permalink
fix: Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hh-space-invader committed Mar 11, 2025
1 parent 7cfedd1 commit 8970512
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/test_async_qdrant_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ async def test_async_qdrant_client(prefer_grpc):
)
assert (await client.get_aliases()).aliases == []

k = 50
await client.upsert(
collection_name=COLLECTION_NAME,
points=[
Expand All @@ -72,10 +73,10 @@ async def test_async_qdrant_client(prefer_grpc):
vector=np.random.rand(10).tolist(),
payload={"random_dig": random.randint(1, 100)},
)
for i in range(50)
for i in range(k)
],
)
assert (await client.count(COLLECTION_NAME)).count == 100
assert (await client.count(COLLECTION_NAME)).count == k

assert len((await client.scroll(COLLECTION_NAME, limit=2))[0]) == 2

Expand Down Expand Up @@ -306,6 +307,7 @@ async def test_async_qdrant_client_local():
)
assert await client.get_aliases()

k = 50
await client.upsert(
collection_name=COLLECTION_NAME,
points=[
Expand All @@ -314,10 +316,10 @@ async def test_async_qdrant_client_local():
vector=np.random.rand(10).tolist(),
payload={"random_dig": random.randint(1, 100)},
)
for i in range(50)
for i in range(k)
],
)
assert (await client.count(COLLECTION_NAME)).count == 100
assert (await client.count(COLLECTION_NAME)).count == k

assert len((await client.scroll(COLLECTION_NAME, limit=2))[0]) == 2

Expand Down

0 comments on commit 8970512

Please sign in to comment.