Skip to content

Commit

Permalink
fix: test output as before
Browse files Browse the repository at this point in the history
Signed-off-by: Smuu <[email protected]>
  • Loading branch information
smuu committed Dec 19, 2024
1 parent 9e31143 commit bacc54e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/node_types/prover/src/prover/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,23 +227,19 @@ async fn test_restart_sync_from_scratch(algorithm: &str) {
}
}

let epoch = prover.clone().db.get_epoch().unwrap();
dbg!("Prover 1 reached epoch: {}", epoch);
assert_eq!(epoch, 4);
assert_eq!(prover.clone().db.get_epoch().unwrap(), 4);

let prover2 = Arc::new(Prover::new(db2.clone(), da_layer.clone(), &cfg).unwrap());
let runner = prover2.clone();
spawn(async move { runner.run().await.unwrap() });

loop {
let epoch = prover2.clone().db.get_epoch().unwrap();
dbg!("Prover 2 current epoch: {}", epoch);
if epoch == 4 {
assert_eq!(
prover.get_commitment().await.unwrap(),
prover2.get_commitment().await.unwrap()
);
dbg!("Prover 2 reached epoch 4 and commitments match.");
break;
}
tokio::time::sleep(Duration::from_millis(200)).await;
Expand Down

0 comments on commit bacc54e

Please sign in to comment.