Wait before stopping the node so transactions are flushed to disk
@@ -157,10 +157,10 @@ pub fn test_node_recovers_kill_signal() {
&jormungandr,
);
let snapshot_before = take_snapshot(&account_receiver, &jormungandr, new_utxo.clone());
+ // Wait before stopping so transactions are flushed to disk
+ std::thread::sleep(std::time::Duration::from_secs(1));
jormungandr.stop();
- std::thread::sleep(std::time::Duration::from_secs(2));
-
let jormungandr = Starter::new()
.config(config)
.role(Role::Leader)
