From bdbca3362e1be50fb42c806cf458dd676670481b Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Tue, 12 Apr 2022 09:54:57 -0500 Subject: [PATCH] increase test timeout (#24277) --- runtime/src/bank.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 28fde1a082..3a5ab10627 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -14667,7 +14667,9 @@ pub(crate) mod tests { // Let threads run for a while, check the scans didn't see any mixed slots let min_expected_number_of_scans = 5; std::thread::sleep(Duration::new(5, 0)); - let mut remaining_loops = 1000; + // This can be reduced when you are running this test locally to deal with hangs + // But, if it is too low, the ci fails intermittently. + let mut remaining_loops = 2000; loop { if num_banks_scanned.load(Relaxed) > min_expected_number_of_scans { break;