Skip to content

Commit

Permalink
wip: fix test naming
Browse files Browse the repository at this point in the history
  • Loading branch information
passcod committed Mar 11, 2024
1 parent b7f13c9 commit 71febd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/tokio_windows/id_same_as_inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
})
Expand Down
6 changes: 3 additions & 3 deletions tests/tokio_windows/inner_read_stdout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
})
Expand All @@ -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(())
}

0 comments on commit 71febd2

Please sign in to comment.