upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/prs_list.rs23
1 files changed, 20 insertions, 3 deletions
diff --git a/tests/prs_list.rs b/tests/prs_list.rs
index 7bc3935..7f753c0 100644
--- a/tests/prs_list.rs
+++ b/tests/prs_list.rs
@@ -141,7 +141,9 @@ mod when_main_branch_is_uptodate {
141 ], 141 ],
142 )?; 142 )?;
143 c.succeeds_with(0, true)?; 143 c.succeeds_with(0, true)?;
144 144 let mut confirm =
145 p.expect_confirm_eventually("check out branch?", Some(true))?;
146 confirm.succeeds_with(None)?;
145 p.expect_end_eventually_and_print()?; 147 p.expect_end_eventually_and_print()?;
146 148
147 for p in [51, 52, 53, 55, 56] { 149 for p in [51, 52, 53, 55, 56] {
@@ -200,6 +202,8 @@ mod when_main_branch_is_uptodate {
200 )?; 202 )?;
201 c.succeeds_with(0, true)?; 203 c.succeeds_with(0, true)?;
202 p.expect("finding commits...\r\n")?; 204 p.expect("finding commits...\r\n")?;
205 let mut confirm = p.expect_confirm("check out branch?", Some(true))?;
206 confirm.succeeds_with(None)?;
203 p.expect("checked out PR branch. pulled 2 new commits\r\n")?; 207 p.expect("checked out PR branch. pulled 2 new commits\r\n")?;
204 p.expect_end()?; 208 p.expect_end()?;
205 209
@@ -302,7 +306,9 @@ mod when_main_branch_is_uptodate {
302 ], 306 ],
303 )?; 307 )?;
304 c.succeeds_with(2, true)?; 308 c.succeeds_with(2, true)?;
305 309 let mut confirm =
310 p.expect_confirm_eventually("check out branch?", Some(true))?;
311 confirm.succeeds_with(None)?;
306 p.expect_end_eventually_and_print()?; 312 p.expect_end_eventually_and_print()?;
307 313
308 for p in [51, 52, 53, 55, 56] { 314 for p in [51, 52, 53, 55, 56] {
@@ -361,6 +367,8 @@ mod when_main_branch_is_uptodate {
361 )?; 367 )?;
362 c.succeeds_with(2, true)?; 368 c.succeeds_with(2, true)?;
363 p.expect("finding commits...\r\n")?; 369 p.expect("finding commits...\r\n")?;
370 let mut confirm = p.expect_confirm("check out branch?", Some(true))?;
371 confirm.succeeds_with(None)?;
364 p.expect("checked out PR branch. pulled 2 new commits\r\n")?; 372 p.expect("checked out PR branch. pulled 2 new commits\r\n")?;
365 p.expect_end()?; 373 p.expect_end()?;
366 374
@@ -478,6 +486,9 @@ mod when_main_branch_is_uptodate {
478 ], 486 ],
479 )?; 487 )?;
480 c.succeeds_with(0, true)?; 488 c.succeeds_with(0, true)?;
489 let mut confirm =
490 p.expect_confirm_eventually("check out branch?", Some(true))?;
491 confirm.succeeds_with(None)?;
481 p.expect_end_eventually_and_print()?; 492 p.expect_end_eventually_and_print()?;
482 493
483 for p in [51, 52, 53, 55, 56] { 494 for p in [51, 52, 53, 55, 56] {
@@ -544,6 +555,8 @@ mod when_main_branch_is_uptodate {
544 )?; 555 )?;
545 c.succeeds_with(0, true)?; 556 c.succeeds_with(0, true)?;
546 p.expect("finding commits...\r\n")?; 557 p.expect("finding commits...\r\n")?;
558 let mut confirm = p.expect_confirm("check out branch?", Some(true))?;
559 confirm.succeeds_with(None)?;
547 p.expect("checked out PR branch. no new commits to pull\r\n")?; 560 p.expect("checked out PR branch. no new commits to pull\r\n")?;
548 p.expect_end()?; 561 p.expect_end()?;
549 562
@@ -632,7 +645,9 @@ mod when_main_branch_is_uptodate {
632 ], 645 ],
633 )?; 646 )?;
634 c.succeeds_with(0, true)?; 647 c.succeeds_with(0, true)?;
635 648 let mut confirm =
649 p.expect_confirm_eventually("check out branch?", Some(true))?;
650 confirm.succeeds_with(None)?;
636 p.expect_end_eventually_and_print()?; 651 p.expect_end_eventually_and_print()?;
637 652
638 for p in [51, 52, 53, 55, 56] { 653 for p in [51, 52, 53, 55, 56] {
@@ -699,6 +714,8 @@ mod when_main_branch_is_uptodate {
699 )?; 714 )?;
700 c.succeeds_with(0, true)?; 715 c.succeeds_with(0, true)?;
701 p.expect("finding commits...\r\n")?; 716 p.expect("finding commits...\r\n")?;
717 let mut confirm = p.expect_confirm("check out branch?", Some(true))?;
718 confirm.succeeds_with(None)?;
702 p.expect("checked out PR branch. pulled 1 new commits\r\n")?; 719 p.expect("checked out PR branch. pulled 1 new commits\r\n")?;
703 p.expect_end()?; 720 p.expect_end()?;
704 721