Skip to content

Commit 13d1795

Browse files
committed
fix nits
1 parent bedaab5 commit 13d1795

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bors/handlers/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,8 @@ mod tests {
330330
.await;
331331
}
332332

333-
#[tracing_test::traced_test]
334333
#[sqlx::test]
335-
async fn pr_fetch_error(pool: sqlx::PgPool) {
334+
async fn do_not_load_pr_on_unrelated_comment(pool: sqlx::PgPool) {
336335
run_test(pool, |mut tester| async {
337336
tester.default_repo().lock().pull_request_error = true;
338337
tester.post_comment("no command").await?;

src/tests/mocks/repository.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ pub struct Repo {
5858
pub cancelled_workflows: Vec<u64>,
5959
pub workflow_cancel_error: bool,
6060
pub pull_requests: HashMap<u64, PullRequest>,
61+
// Cause pull request fetch to fail
6162
pub pull_request_error: bool,
6263
}
6364

0 commit comments

Comments
 (0)