[ty] Increase default receive timeout in tests to 10s (#21448)

This commit is contained in:
Micha Reiser 2025-11-14 13:15:22 +01:00 committed by GitHub
parent 696d7a5d68
commit d0314131fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -502,9 +502,9 @@ impl TestServer {
/// It will wait for `timeout` duration for a message to arrive. If no message is received
/// within that time, it will return an error.
///
/// If `timeout` is `None`, it will use a default timeout of 1 second.
/// If `timeout` is `None`, it will use a default timeout of 10 second.
fn receive(&mut self, timeout: Option<Duration>) -> Result<(), TestServerError> {
static DEFAULT_TIMEOUT: Duration = Duration::from_secs(1);
static DEFAULT_TIMEOUT: Duration = Duration::from_secs(10);
let receiver = self.client_connection.as_ref().unwrap().receiver.clone();
let message = receiver