Skip to content

Commit 91688a9

Browse files
committed
Make sure index names incorporate xdist worker ID
1 parent 7953e73 commit 91688a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/test_query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def index(sample_data, redis_url, worker_id):
149149
index = SearchIndex.from_dict(
150150
{
151151
"index": {
152-
"name": "user_index",
152+
"name": f"user_index_{worker_id}",
153153
"prefix": f"v1_{worker_id}",
154154
"storage_type": "hash",
155155
},
@@ -201,7 +201,7 @@ def L2_index(sample_data, redis_url, worker_id):
201201
index = SearchIndex.from_dict(
202202
{
203203
"index": {
204-
"name": "L2_index",
204+
"name": f"L2_index_{worker_id}",
205205
"prefix": f"L2_index_{worker_id}",
206206
"storage_type": "hash",
207207
},

0 commit comments

Comments
 (0)