test: decrease test timeout for keep alive (#523)

This commit is contained in:
Matthias Seitz
2022-12-19 18:03:50 +01:00
committed by GitHub
parent e713b0c015
commit 40579bf233

View File

@@ -737,7 +737,7 @@ mod tests {
let local_addr = listener.local_addr().unwrap();
let fut = builder.with_client_stream(local_addr, move |mut client_stream| async move {
let _ = tokio::time::timeout(Duration::from_secs(60), client_stream.next()).await;
let _ = tokio::time::timeout(Duration::from_secs(25), client_stream.next()).await;
client_stream.into_inner().disconnect(DisconnectReason::UselessPeer).await.unwrap();
});