Skip to content

Commit 2f2d145

Browse files
committed
fix
Signed-off-by: aaronzuo <anarionzuo@outlook.com>
1 parent 7bb1d19 commit 2f2d145

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/unit_tests.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,19 @@ jobs:
108108
curl -fsS http://127.0.0.1:6566/health >/dev/null
109109
- name: Validate MCP endpoint
110110
run: |
111-
curl -sS -D /tmp/mcp_headers -o /dev/null --max-time 2 -H "Accept: text/event-stream" http://127.0.0.1:6566/mcp || true
112-
grep -E "^HTTP/.* 200" /tmp/mcp_headers
113-
grep -i "^content-type: text/event-stream" /tmp/mcp_headers
111+
rm -f /tmp/mcp_headers
112+
for i in $(seq 1 10); do
113+
curl -sS -D /tmp/mcp_headers -o /dev/null --max-time 10 \
114+
-H "Accept: text/event-stream, application/json" \
115+
-H "mcp-protocol-version: 2025-03-26" \
116+
http://127.0.0.1:6566/mcp || true
117+
if grep -Eq "^HTTP/.* 200" /tmp/mcp_headers && grep -Eiq "^content-type: text/event-stream" /tmp/mcp_headers; then
118+
exit 0
119+
fi
120+
sleep 1
121+
done
122+
cat /tmp/mcp_headers || true
123+
exit 1
114124
- name: Stop feature server
115125
if: always()
116126
run: |

0 commit comments

Comments
 (0)