diff --git a/tests/tokio_windows/id_same_as_inner.rs b/tests/tokio_windows/id_same_as_inner.rs index cb3611d..8b6dbfd 100644 --- a/tests/tokio_windows/id_same_as_inner.rs +++ b/tests/tokio_windows/id_same_as_inner.rs @@ -13,7 +13,7 @@ async fn nowrap() -> Result<()> { } #[tokio::test] -async fn process_job_object() -> Result<()> { +async fn job_object() -> Result<()> { let child = TokioCommandWrap::with_new("powershell.exe", |command| { command.arg("/C").arg("echo hello").stdout(Stdio::null()); }) diff --git a/tests/tokio_windows/inner_read_stdout.rs b/tests/tokio_windows/inner_read_stdout.rs index 74af551..7a483b6 100644 --- a/tests/tokio_windows/inner_read_stdout.rs +++ b/tests/tokio_windows/inner_read_stdout.rs @@ -12,12 +12,12 @@ async fn nowrap() -> Result<()> { out.read_to_string(&mut output).await?; } - assert_eq!(output.as_str(), "hello\n"); + assert_eq!(output.as_str(), "hello\r\n"); Ok(()) } #[tokio::test] -async fn process_job_object() -> Result<()> { +async fn job_object() -> Result<()> { let mut child = TokioCommandWrap::with_new("powershell.exe", |command| { command.arg("/C").arg("echo hello").stdout(Stdio::piped()); }) @@ -29,6 +29,6 @@ async fn process_job_object() -> Result<()> { out.read_to_string(&mut output).await?; } - assert_eq!(output.as_str(), "hello\n"); + assert_eq!(output.as_str(), "hello\r\n"); Ok(()) }