Skip to content

Commit debd8d2

Browse files
committed
Only do check on unix platforms
1 parent d36e486 commit debd8d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/componentize.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ fn http_example() -> anyhow::Result<()> {
8383
let mut buf = [0; 36];
8484
let mut stderr = handle.stderr.take().unwrap();
8585

86-
// Read until "Serving HTTP" shows up
86+
// Read until "Serving HTTP" shows up on Unix
87+
// (stderr blocks on windows)
88+
#[cfg(unix)]
8789
retry(
8890
|| -> anyhow::Result<()> {
8991
if stderr.read(&mut buf)? == 0 {

0 commit comments

Comments
 (0)