ruby-sdk/test/mcp/client
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Koichi ITO 760346818e Join server threads before closing IO pipes in stdio client tests
Background threads simulating server responses could race with the `ensure` block
that closes IO pipes, intermittently producing this warning depending on thread scheduling:

```console
#<Thread:0x00007fb69290cbd0 test/mcp/client/stdio_test.rb:28 run>
terminated with exception (report_on_exception is true):
test/mcp/client/stdio_test.rb:55:in `write': stream closed in another thread (IOError)
```

Store each background thread in a `server_thread` variable and call `server_thread&.join(1)`
at the top of each `ensure` block to wait for the thread to finish before closing pipes.
2026-03-31 04:34:21 +09:00
..
http_test.rb Add Accept header validation 2026-01-07 14:55:19 +09:00
stdio_test.rb Join server threads before closing IO pipes in stdio client tests 2026-03-31 04:34:21 +09:00
tool_test.rb Add Tool output_schema support with comprehensive validation 2025-09-11 11:12:27 -04:00