mirror of
https://git.ghostchain.io/proxmio/ghost-node.git
synced 2025-12-27 03:09:56 +00:00
rustfmt tests and fix typos
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user