Skip to content

Commit 35efa8e

Browse files
committed
Fix async tests
1 parent fcd9670 commit 35efa8e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/integration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ jobs:
129129
with:
130130
python-version: ${{ matrix.python-version }}
131131
cache: 'pip'
132-
- name: run tests
132+
- name: Run tests
133133
run: |
134134
pip install -U setuptools wheel
135135
pip install -r requirements.txt

tests/test_asyncio/test_cwe_404.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,4 +261,4 @@ async def doit():
261261

262262
await asyncio.gather(*[doit() for _ in range(10)])
263263
finally:
264-
await r.close()
264+
await r.aclose()

tests/test_asyncio/test_search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,14 +1511,14 @@ async def test_withsuffixtrie(decoded_r: redis.Redis):
15111511

15121512
# create withsuffixtrie index (text fields)
15131513
assert await decoded_r.ft().create_index(TextField("t", withsuffixtrie=True))
1514-
waitForIndex(decoded_r, getattr(decoded_r.ft(), "index_name", "idx"))
1514+
await waitForIndex(decoded_r, getattr(decoded_r.ft(), "index_name", "idx"))
15151515
info = await decoded_r.ft().info()
15161516
assert "WITHSUFFIXTRIE" in info["attributes"][0]["flags"]
15171517
assert await decoded_r.ft().dropindex("idx")
15181518

15191519
# create withsuffixtrie index (tag field)
15201520
assert await decoded_r.ft().create_index(TagField("t", withsuffixtrie=True))
1521-
waitForIndex(decoded_r, getattr(decoded_r.ft(), "index_name", "idx"))
1521+
await waitForIndex(decoded_r, getattr(decoded_r.ft(), "index_name", "idx"))
15221522
info = await decoded_r.ft().info()
15231523
assert "WITHSUFFIXTRIE" in info["attributes"][0]["flags"]
15241524

0 commit comments

Comments
 (0)