https://buildkite.com/solana-labs/solana/builds/73576#2847bbc5-6af4-4968-817d-f32b03d2f16d
The current timeout is 5 sec.  The timeout happened in this test run.
But it is not easy to manually reproduce this error.  I saw it
happened once out of about 20 runs.

Summary of Changes

Increase broadcast receiver timeout to mitigate test flakiness.
The chance of exceeding the 10sec timeout should be much lower.

We can debug the timeout further once we have the cargo nextest
stress run set up.

Co-authored-by: Xiang Zhu <xiangzhu@Xiangs-MacBook-Pro.local>
This commit is contained in:
xiangzhu70 2022-05-20 08:09:52 -07:00 committed by GitHub
parent 1e7d877494
commit 1295a95de6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ pub struct TestBroadcastReceiver {
#[cfg(test)] #[cfg(test)]
impl TestBroadcastReceiver { impl TestBroadcastReceiver {
pub fn recv(&mut self) -> String { pub fn recv(&mut self) -> String {
return match self.recv_timeout(std::time::Duration::from_secs(5)) { return match self.recv_timeout(std::time::Duration::from_secs(10)) {
Err(err) => panic!("broadcast receiver error: {}", err), Err(err) => panic!("broadcast receiver error: {}", err),
Ok(str) => str, Ok(str) => str,
}; };