We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3a1bf8 commit 581520fCopy full SHA for 581520f
src/tests/mocks/bors.rs
@@ -842,7 +842,12 @@ impl BorsTester {
842
self.merge_queue_tx.shutdown();
843
self.mergeable_queue_tx.shutdown();
844
// Wait until all events are handled in the bors service
845
- bors.await.unwrap();
+ match tokio::time::timeout(Duration::from_secs(5), bors).await {
846
+ Ok(res) => res.expect("Bors service ended with an error"),
847
+ Err(_) => panic!(
848
+ "Timed out waiting for bors service to shutdown. Maybe you forgot to close some channel senders?"
849
+ ),
850
+ }
851
// Flush any local queues
852
self.http_mock.gh_server.assert_empty_queues().await;
853
self.github
0 commit comments