Fix test_max_hashes (#14189)

(cherry picked from commit a5db6399ad)
This commit is contained in:
sakridge
2020-12-17 15:12:18 -08:00
committed by Michael Vines
parent b7fa4b7ee1
commit 554a158443

View File

@ -254,6 +254,9 @@ mod tests {
0, 0,
100, 100,
); );
// sleep for 1ms to create a newer timestmap for gossip entry
// otherwise the timestamp won't be newer.
std::thread::sleep(Duration::from_millis(1));
} }
cluster_info.flush_push_queue(); cluster_info.flush_push_queue();
let cluster_hashes = cluster_info let cluster_hashes = cluster_info