Skip to content

Commit b0f990d

Browse files
authored
Remove unneeded refreshes in tests (#40)
1 parent 209a5dc commit b0f990d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

test_elasticsearch_serverless/test_async/test_server/test_helpers.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ async def test_all_errors_from_chunk_are_raised_on_failure(self, async_client):
126126
index="i",
127127
mappings={"properties": {"a": {"type": "integer"}}},
128128
)
129-
await async_client.cluster.health(wait_for_status="yellow")
130129

131130
try:
132131
async for ok, item in helpers.async_streaming_bulk(
@@ -334,7 +333,6 @@ async def test_errors_are_reported_correctly(self, async_client):
334333
index="i",
335334
mappings={"properties": {"a": {"type": "integer"}}},
336335
)
337-
await async_client.cluster.health(wait_for_status="yellow")
338336

339337
success, failed = await helpers.async_bulk(
340338
async_client,
@@ -357,7 +355,6 @@ async def test_error_is_raised(self, async_client):
357355
index="i",
358356
mappings={"properties": {"a": {"type": "integer"}}},
359357
)
360-
await async_client.cluster.health(wait_for_status="yellow")
361358

362359
with pytest.raises(helpers.BulkIndexError):
363360
await helpers.async_bulk(async_client, [{"a": 42}, {"a": "c"}], index="i")
@@ -400,7 +397,6 @@ async def test_errors_are_collected_properly(self, async_client):
400397
index="i",
401398
mappings={"properties": {"a": {"type": "integer"}}},
402399
)
403-
await async_client.cluster.health(wait_for_status="yellow")
404400

405401
success, failed = await helpers.async_bulk(
406402
async_client,

0 commit comments

Comments
 (0)