increase test timeout (#24277)

(cherry picked from commit bdbca3362e)
This commit is contained in:
Jeff Washington (jwash)
2022-04-12 09:54:57 -05:00
committed by mergify-bot
parent d02bf12976
commit 67276d328e

View File

@@ -14580,7 +14580,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;