increase test timeout (#24277)

This commit is contained in:
Jeff Washington (jwash) 2022-04-12 09:54:57 -05:00 committed by GitHub
parent 1bc49d219d
commit bdbca3362e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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;