Skip to content

Commit 65ff34b

Browse files
committed
Fix asyncio bug in test fixtures
1 parent 47c7a42 commit 65ff34b

File tree

1 file changed

+2
-1
lines changed
  • test_elasticsearch_serverless/test_async/test_server

1 file changed

+2
-1
lines changed

test_elasticsearch_serverless/test_async/test_server/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# under the License.
1717

1818
import pytest
19+
import pytest_asyncio
1920

2021
import elasticsearch_serverless
2122

@@ -24,7 +25,7 @@
2425
pytestmark = pytest.mark.asyncio
2526

2627

27-
@pytest.fixture(scope="function")
28+
@pytest_asyncio.fixture(scope="function")
2829
@pytest.mark.usefixtures("sync_client")
2930
async def async_client(elasticsearch_url):
3031
# 'sync_client' fixture is used for the guaranteed wipe_cluster() call.

0 commit comments

Comments
 (0)