Skip to content

Commit 4bfced0

Browse files
committed
Mark SSE tests as RUN_SERIAL to avoid port conflicts
SSE tests can be flaky on CI when running in parallel due to port binding conflicts. Running them serially improves reliability.
1 parent cf3a2c1 commit 4bfced0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,15 @@ if(FASTMCPP_BUILD_TESTS)
206206
add_executable(fastmcpp_sse_server tests/server/sse.cpp)
207207
target_link_libraries(fastmcpp_sse_server PRIVATE fastmcpp_core)
208208
add_test(NAME fastmcpp_sse_server COMMAND fastmcpp_sse_server)
209+
# Avoid port conflicts with parallel tests; SSE tests can be flaky on CI
210+
set_tests_properties(fastmcpp_sse_server PROPERTIES RUN_SERIAL TRUE)
209211

210212
# MCP SSE format compliance test (regression test for GitHub Issue #1)
211213
add_executable(fastmcpp_sse_mcp_format tests/server/sse_mcp_format.cpp)
212214
target_link_libraries(fastmcpp_sse_mcp_format PRIVATE fastmcpp_core)
213215
add_test(NAME fastmcpp_sse_mcp_format COMMAND fastmcpp_sse_mcp_format)
214216

217+
set_tests_properties(fastmcpp_sse_mcp_format PROPERTIES RUN_SERIAL TRUE)
215218
# Advanced test suites (Task 3.4)
216219
add_executable(fastmcpp_tools_validation tests/tools/validation.cpp)
217220
target_link_libraries(fastmcpp_tools_validation PRIVATE fastmcpp_core)

0 commit comments

Comments
 (0)