Skip to content

Commit 11f2861

Browse files
committed
Fix line ending issue and only run tcp example on unix systems
1 parent 2e1731d commit 11f2861

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/componentize.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,12 @@ fn sandbox_example() -> anyhow::Result<()> {
222222
.args(["host.py", "2 + 2"])
223223
.assert()
224224
.success()
225-
.stdout("result: 4\n");
225+
.stdout(predicate::str::contains("result: 4"));
226226

227227
Ok(())
228228
}
229229

230+
#[cfg(unix)]
230231
#[test]
231232
fn tcp_example() -> anyhow::Result<()> {
232233
let dir = tempfile::tempdir()?;

0 commit comments

Comments
 (0)