Skip to content

Commit b210ad4

Browse files
committed
Bless tests
1 parent be426d0 commit b210ad4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/bors/handlers/review.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ mod tests {
354354
.await?;
355355
insta::assert_snapshot!(
356356
tester.get_comment().await?,
357-
@""
357+
@"@unprivileged-user: :key: Insufficient privileges: not in try users"
358358
);
359359
Ok(tester)
360360
})
@@ -370,7 +370,7 @@ mod tests {
370370
tester.post_comment("@bors p=2").await?;
371371
insta::assert_snapshot!(
372372
tester.get_comment().await?,
373-
@""
373+
@"@unprivileged-user: :key: Insufficient privileges: not in review users"
374374
);
375375
Ok(tester)
376376
})
@@ -392,7 +392,7 @@ mod tests {
392392
tester.post_comment("@bors r-").await?;
393393
insta::assert_snapshot!(
394394
tester.get_comment().await?,
395-
@""
395+
@"Commit pr-1-sha has been unapproved"
396396
);
397397

398398
tester.default_pr().await.expect_unapproved();
@@ -502,7 +502,7 @@ mod tests {
502502
tester.post_comment("@bors treeclosed=5").await?;
503503
insta::assert_snapshot!(
504504
tester.get_comment().await?,
505-
@""
505+
@"Tree closed for PRs with priority less than 5"
506506
);
507507

508508
let repo = tester.db().repo_db(&default_repo_name()).await?;
@@ -533,7 +533,7 @@ mod tests {
533533
tester.post_comment("@bors treeclosed=5").await?;
534534
insta::assert_snapshot!(
535535
tester.get_comment().await?,
536-
@""
536+
@"@default-user: :key: Insufficient privileges: not in review users"
537537
);
538538
Ok(tester)
539539
})
@@ -569,7 +569,7 @@ mod tests {
569569
.await?;
570570
insta::assert_snapshot!(
571571
tester.get_comment().await?,
572-
@""
572+
@"@default-user can now approve this pull request"
573573
);
574574

575575
tester.default_pr().await.expect_delegated();
@@ -660,7 +660,7 @@ mod tests {
660660
tester.post_comment("@bors delegate+").await?;
661661
insta::assert_snapshot!(
662662
tester.get_comment().await?,
663-
@""
663+
@"@default-user: :key: Insufficient privileges: not in review users"
664664
);
665665

666666
assert!(tester.default_pr_db().await?.is_none());

0 commit comments

Comments
 (0)