Skip to content

Commit f2374da

Browse files
committed
removed custom event loop fixture
1 parent 43a4619 commit f2374da

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

requirements_test.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pytest < 9.0.0
2-
pytest-asyncio < 1.3.0
1+
pytest~=8,
2+
pytest-asyncio~=1.2
33
pytest-mock
44
pytest-testdox>=1.1.1
55
pytest-cov

tests/e2e/iothub_e2e/aio/conftest.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# Licensed under the MIT License. See License.txt in the project root for
33
# license information.
44
import pytest
5-
import asyncio
65
from dev_utils import test_env, ServiceHelper
76
import logging
87
import datetime
@@ -56,11 +55,11 @@ def pytest_sessionfinish(session, exitstatus):
5655
print("-----------------------------------")
5756

5857

59-
@pytest.fixture(scope="session")
60-
def event_loop():
61-
loop = asyncio.get_event_loop()
62-
yield loop
63-
loop.close()
58+
# @pytest.fixture(scope="session")
59+
# def event_loop():
60+
# loop = asyncio.get_event_loop()
61+
# yield loop
62+
# loop.close()
6463

6564

6665
@pytest.fixture(scope="function")
@@ -104,12 +103,12 @@ async def client(brand_new_client):
104103

105104

106105
@pytest.fixture(scope="session")
107-
async def service_helper(event_loop, executor):
106+
async def service_helper(executor):
108107
service_helper = ServiceHelper(
109108
iothub_connection_string=test_env.IOTHUB_CONNECTION_STRING,
110109
eventhub_connection_string=test_env.EVENTHUB_CONNECTION_STRING,
111110
eventhub_consumer_group=test_env.EVENTHUB_CONSUMER_GROUP,
112-
event_loop=event_loop,
111+
# event_loop=event_loop,
113112
executor=executor,
114113
)
115114
yield service_helper

0 commit comments

Comments
 (0)