Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky unittest, should use timestamp of the Gossip message. #2893

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions wen-restart/src/last_voted_fork_slots_aggregate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,9 +490,10 @@ mod tests {
[initial_num_active_validators + 2]
.node_keypair
.pubkey();
let now = timestamp();
let super_old_validator_last_voted_slots = RestartLastVotedForkSlots::new(
super_old_validator,
timestamp(),
now,
&[root_slot - 1],
Hash::default(),
SHRED_VERSION,
Expand All @@ -506,7 +507,7 @@ mod tests {
last_voted_fork_slots: vec![],
last_vote_bankhash: Hash::default().to_string(),
shred_version: SHRED_VERSION as u32,
wallclock: timestamp(),
wallclock: now,
}),
);
assert_eq!(
Expand Down