Merge 360ccded1a into sapling-pr-archive-bolinfest

This commit is contained in:
Michael Bolin
2026-04-26 00:11:29 -07:00
committed by GitHub

View File

@@ -541,7 +541,14 @@ impl WebSocketTestServer {
pub async fn shutdown(self) {
let _ = self.shutdown.send(());
let _ = self.task.await;
let mut task = self.task;
if tokio::time::timeout(Duration::from_secs(10), &mut task)
.await
.is_err()
{
task.abort();
let _ = task.await;
}
}
}