Fix test_max_hashes (#14189)

This commit is contained in:
sakridge 2020-12-17 15:12:18 -08:00 committed by GitHub
parent da7d1e2302
commit a5db6399ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -254,6 +254,9 @@ mod tests {
0,
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();
let cluster_hashes = cluster_info