Skip to content

Commit 15dd3d0

Browse files
committed
fix
1 parent d58e998 commit 15dd3d0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/shared/test_sse.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@ async def test_raw_sse_connection(server, server_url) -> None:
179179
except Exception as e:
180180
pytest.fail(f"{e}")
181181

182+
@pytest.mark.anyio
182183
@pytest.mark.skip(
183184
"fails in CI, but works locally. Need to investigate why."
184185
)
185-
@pytest.mark.anyio
186186
async def test_sse_client_basic_connection(server: None, server_url: str) -> None:
187187
async with sse_client(server_url + "/sse") as streams:
188188
async with ClientSession(*streams) as session:
@@ -195,9 +195,6 @@ async def test_sse_client_basic_connection(server: None, server_url: str) -> Non
195195
ping_result = await session.send_ping()
196196
assert isinstance(ping_result, EmptyResult)
197197

198-
@pytest.mark.skip(
199-
"fails in CI, but works locally. Need to investigate why."
200-
)
201198
@pytest.fixture
202199
async def initialized_sse_client_session(
203200
server, server_url: str
@@ -207,10 +204,11 @@ async def initialized_sse_client_session(
207204
await session.initialize()
208205
yield session
209206

207+
208+
@pytest.mark.anyio
210209
@pytest.mark.skip(
211210
"fails in CI, but works locally. Need to investigate why."
212211
)
213-
@pytest.mark.anyio
214212
async def test_sse_client_happy_request_and_response(
215213
initialized_sse_client_session: ClientSession,
216214
) -> None:
@@ -220,10 +218,11 @@ async def test_sse_client_happy_request_and_response(
220218
assert isinstance(response.contents[0], TextResourceContents)
221219
assert response.contents[0].text == "Read should-work"
222220

221+
222+
@pytest.mark.anyio
223223
@pytest.mark.skip(
224224
"fails in CI, but works locally. Need to investigate why."
225225
)
226-
@pytest.mark.anyio
227226
async def test_sse_client_exception_handling(
228227
initialized_sse_client_session: ClientSession,
229228
) -> None:

0 commit comments

Comments
 (0)