rustfmt tests and fix typos

Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
Uncle Stretch
2025-07-29 14:45:41 +03:00
parent ce26787a11
commit 8f20b7ef5c
7 changed files with 30 additions and 33 deletions

View File

@@ -13,7 +13,7 @@ async fn running_the_node_works_and_can_be_interrupted() {
use nix::{
sys::signal::{
kill,
Signal::{self, SIGINT, SIGTERM,},
Signal::{self, SIGINT, SIGTERM},
},
unistd::Pid,
};
@@ -33,11 +33,14 @@ async fn running_the_node_works_and_can_be_interrupted() {
let (ws_url, _) = common::find_ws_url_from_output(cmd.stderr.take().unwrap());
// Let produce three blocks.
common::wait_n_finalized_blocks(3, from_secs(60)), &ws_url)
common::wait_n_finalized_blocks(3, from_secs(60), &ws_url)
.await
.unwrap();
assert!(cmd.try_wait().unwrap().is_none(), "the process should still be running");
assert!(
cmd.try_wait().unwrap().is_none(),
"the process should still be running"
);
kill(Pid::from_raw(cmd.id().try_into().unwrap()), signal).unwrap();
assert_eq!(
common::wait_for(&mut cmd, 30).map(|x| x.success()),