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 152db5b
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 _ = Command::new("taskkill")
.args(["/f", "/im", "node.exe"])
.spawn();
}

Ok(())
}
}

0 comments on commit 152db5b

Please sign in to comment.