From a5db6399adbd20c332bda410fec88562b4bc570d Mon Sep 17 00:00:00 2001 From: sakridge Date: Thu, 17 Dec 2020 15:12:18 -0800 Subject: [PATCH] Fix test_max_hashes (#14189) --- core/src/accounts_hash_verifier.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/accounts_hash_verifier.rs b/core/src/accounts_hash_verifier.rs index 243e960808..43601d8552 100644 --- a/core/src/accounts_hash_verifier.rs +++ b/core/src/accounts_hash_verifier.rs @@ -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