Skip to content

Commit

Permalink
Wait before stopping the node so transactions are flushed to disk
Browse files Browse the repository at this point in the history
  • Loading branch information
zeegomo committed Jan 14, 2021
1 parent 67dbd38 commit a9db327
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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)
Expand Down

0 comments on commit a9db327

Please sign in to comment.