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 bedaab5 commit 13d1795Copy full SHA for 13d1795
src/bors/handlers/mod.rs
@@ -330,9 +330,8 @@ mod tests {
330
.await;
331
}
332
333
- #[tracing_test::traced_test]
334
#[sqlx::test]
335
- async fn pr_fetch_error(pool: sqlx::PgPool) {
+ async fn do_not_load_pr_on_unrelated_comment(pool: sqlx::PgPool) {
336
run_test(pool, |mut tester| async {
337
tester.default_repo().lock().pull_request_error = true;
338
tester.post_comment("no command").await?;
src/tests/mocks/repository.rs
@@ -58,6 +58,7 @@ pub struct Repo {
58
pub cancelled_workflows: Vec<u64>,
59
pub workflow_cancel_error: bool,
60
pub pull_requests: HashMap<u64, PullRequest>,
61
+ // Cause pull request fetch to fail
62
pub pull_request_error: bool,
63
64
0 commit comments