Add error message for duration subtraction overflow in sim tests (#6558)

* Add error message for duration subtraction overflow.
This commit is contained in:
Jimmy Chen
2024-11-04 09:46:25 +11:00
committed by GitHub
parent 16693b0bd7
commit 4f86d950e9
3 changed files with 7 additions and 4 deletions

View File

@@ -194,7 +194,7 @@ pub fn run_fallback_sim(matches: &ArgMatches) -> Result<(), String> {
);
}
let duration_to_genesis = network.duration_to_genesis().await;
let duration_to_genesis = network.duration_to_genesis().await?;
println!("Duration to genesis: {}", duration_to_genesis.as_secs());
sleep(duration_to_genesis).await;