Skip to content

Commit

Permalink
test(prover): Use separate ports when running 2 provers in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jns-ps committed Dec 5, 2024
1 parent 976a354 commit c4a87ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/node_types/prover/src/prover/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@ async fn test_load_persisted_state() {

assert_eq!(prover.clone().db.get_epoch().unwrap(), 4);

let prover2 = Arc::new(Prover::new(db.clone(), da_layer.clone(), &cfg).unwrap());
let mut cfg2 = cfg;
cfg2.webserver.port += 1;

let prover2 = Arc::new(Prover::new(db.clone(), da_layer.clone(), &cfg2).unwrap());
let runner = prover2.clone();
spawn(async move { runner.run().await.unwrap() });
let epoch = prover2.clone().db.get_epoch().unwrap();
Expand Down

0 comments on commit c4a87ff

Please sign in to comment.