Skip to content

Commit

Permalink
Add logic to kill node processes on test termination
Browse files Browse the repository at this point in the history
  • Loading branch information
BrynCooke authored and bryn committed Apr 19, 2022
1 parent 326e330 commit fc0f735
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions xtask/src/commands/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ impl Test {
eprintln!("Running tests");
cargo!(TEST_DEFAULT_ARGS);

#[cfg(windows)]
{
// dirty hack. Node processes on windows will not shut down cleanly.
let _ = std::process::Command::new("taskkill")
.args(["/f", "/im", "node.exe"])
.spawn();
}

Ok(())
}
}

0 comments on commit fc0f735

Please sign in to comment.