Skip to content

Commit 02b707d

Browse files
committed
Fixing test
1 parent e444373 commit 02b707d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_collection.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async def test_collection_misc_methods(doc_col, bad_col):
3131

3232

3333
@pytest.mark.asyncio
34-
async def test_collection_index(doc_col, bad_col):
34+
async def test_collection_index(doc_col, bad_col, cluster):
3535
# Create indexes
3636
idx1 = await doc_col.add_index(
3737
type="persistent",
@@ -91,7 +91,8 @@ async def test_collection_index(doc_col, bad_col):
9191
assert idx3.fields == ["location"]
9292
assert idx3.name == "idx3"
9393
assert idx3.geo_json is True
94-
assert idx3.in_background is True
94+
if cluster:
95+
assert idx3.in_background is True
9596

9697
with pytest.raises(IndexCreateError):
9798
await bad_col.add_index(type="persistent", fields=["_key"])

0 commit comments

Comments
 (0)