Skip to content

Commit 16b2fcd

Browse files
committed
skip only if GITHUB_ACTIONS env var is set
1 parent 30c27e5 commit 16b2fcd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests-integ/test_mcp_client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import base64
2+
import os
23
import threading
34
import time
45
from typing import List, Literal
@@ -102,7 +103,9 @@ def test_can_reuse_mcp_client():
102103
assert any([block["name"] == "echo" for block in tool_use_content_blocks])
103104

104105

105-
@pytest.mark.skip(reason="streamable transport is failing in GitHub actions, debugging if linux compatibility issue")
106+
@pytest.mark.skipif(
107+
condition=os.environ.get("GITHUB_ACTIONS") == 'true',
108+
reason="streamable transport is failing in GitHub actions, debugging if linux compatibility issue")
106109
def test_streamable_http_mcp_client():
107110
server_thread = threading.Thread(
108111
target=start_calculator_server, kwargs={"transport": "streamable-http", "port": 8001}, daemon=True

0 commit comments

Comments
 (0)