mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-24 10:16:59 -06:00
test: macOSのMCPテスト修正を取り込む (#454)
This commit is contained in:
@@ -172,6 +172,9 @@ mod tests {
|
||||
Err(e) => panic!("accept failed: {e}"),
|
||||
}
|
||||
};
|
||||
// Accepted sockets can inherit the listener's nonblocking mode. The server
|
||||
// waits for both requests with timeouts, rather than reading before they arrive.
|
||||
stream.set_nonblocking(false).unwrap();
|
||||
stream.set_read_timeout(Some(Duration::from_secs(2))).unwrap();
|
||||
stream.set_write_timeout(Some(Duration::from_secs(2))).unwrap();
|
||||
let mut reader = BufReader::new(stream.try_clone().unwrap());
|
||||
|
||||
Reference in New Issue
Block a user