diff options
Diffstat (limited to 'test_utils')
| -rw-r--r-- | test_utils/src/lib.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/test_utils/src/lib.rs b/test_utils/src/lib.rs index ccd9d80..48273e8 100644 --- a/test_utils/src/lib.rs +++ b/test_utils/src/lib.rs | |||
| @@ -1535,10 +1535,8 @@ pub fn use_ngit_list_to_download_and_checkout_proposal_branch( | |||
| 1535 | /// Fetch proposals into the local cache and checkout the one matching | 1535 | /// Fetch proposals into the local cache and checkout the one matching |
| 1536 | /// `branch_name_in_event` using `ngit pr checkout <id>`. | 1536 | /// `branch_name_in_event` using `ngit pr checkout <id>`. |
| 1537 | /// Requires relays to already be running. | 1537 | /// Requires relays to already be running. |
| 1538 | pub fn use_ngit_pr_checkout( | 1538 | #[allow(deprecated)] |
| 1539 | test_repo: &GitTestRepo, | 1539 | pub fn use_ngit_pr_checkout(test_repo: &GitTestRepo, branch_name_in_event: &str) -> Result<()> { |
| 1540 | branch_name_in_event: &str, | ||
| 1541 | ) -> Result<()> { | ||
| 1542 | // populate the local cache | 1540 | // populate the local cache |
| 1543 | let mut p = CliTester::new_from_dir( | 1541 | let mut p = CliTester::new_from_dir( |
| 1544 | &test_repo.dir, | 1542 | &test_repo.dir, |
| @@ -1582,9 +1580,7 @@ pub fn use_ngit_pr_checkout( | |||
| 1582 | .unwrap_or(false) | 1580 | .unwrap_or(false) |
| 1583 | }) | 1581 | }) |
| 1584 | .ok_or_else(|| { | 1582 | .ok_or_else(|| { |
| 1585 | anyhow::anyhow!( | 1583 | anyhow::anyhow!("no proposal found for branch {branch_name_in_event} in: {stdout}") |
| 1586 | "no proposal found for branch {branch_name_in_event} in: {stdout}" | ||
| 1587 | ) | ||
| 1588 | })?; | 1584 | })?; |
| 1589 | let proposal_id = entry["id"].as_str().unwrap_or_default().to_string(); | 1585 | let proposal_id = entry["id"].as_str().unwrap_or_default().to_string(); |
| 1590 | 1586 | ||