Skip to content

Commit

Permalink
add test comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry committed Mar 7, 2024
1 parent 5891408 commit 31a0c6d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/src/banking_stage/consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1711,8 +1711,13 @@ mod tests {

let poh_simulator = simulate_poh(record_receiver, &poh_recorder);

let (replay_vote_sender, _replay_vote_receiver) = unbounded();
// Hold onto poh lock so that workers cannot finish recording
// transactions and cannot unlock accounts immediately. This allows
// us to test having parallel workers that have account lock
// conflicts.
let poh_lock = poh_recorder.write().unwrap();

let (replay_vote_sender, _replay_vote_receiver) = unbounded();
let worker1 = {
let bank = bank.clone();
let committer = Committer::new(
Expand Down

0 comments on commit 31a0c6d

Please sign in to comment.