Skip to content

Commit c2ead44

Browse files
committed
webrtc: Fix shutdown timeout test to wait for 5s FIN_ACK timeout
1 parent 184971c commit c2ead44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/transport/webrtc/substream.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,9 +1294,9 @@ mod tests {
12941294
assert!(matches!(*handle.state.lock(), State::FinSent));
12951295

12961296
// DON'T send FIN_ACK - let it timeout
1297-
// The shutdown should complete after FIN_ACK_TIMEOUT (2 seconds in tests)
1297+
// The shutdown should complete after FIN_ACK_TIMEOUT (5 seconds)
12981298
// Add a bit of buffer to the timeout
1299-
let result = timeout(Duration::from_secs(4), shutdown_task).await;
1299+
let result = timeout(Duration::from_secs(7), shutdown_task).await;
13001300

13011301
assert!(result.is_ok(), "Shutdown should complete after timeout");
13021302
assert!(

0 commit comments

Comments
 (0)