From 9cd3e43b899b23b7f6e75276fa3d19bf9550f8fd Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 9 Feb 2024 07:21:00 +0000 Subject: refactor(git): find root commit from head this is simpler there is no need to check whether main or master exist because one does 99+% of the time the root commit wil be te same for head as master 99+% of the time --- tests/claim.rs | 9 --------- 1 file changed, 9 deletions(-) (limited to 'tests') diff --git a/tests/claim.rs b/tests/claim.rs index ef669d0..fa7adcc 100644 --- a/tests/claim.rs +++ b/tests/claim.rs @@ -2,15 +2,6 @@ use anyhow::Result; use serial_test::serial; use test_utils::{git::GitTestRepo, *}; -#[test] -fn when_no_main_or_master_branch_return_error() -> Result<()> { - let test_repo = GitTestRepo::new("notmain")?; - test_repo.populate()?; - let mut p = CliTester::new_from_dir(&test_repo.dir, ["claim"]); - p.expect("Error: no main or master branch")?; - Ok(()) -} - fn expect_msgs_first(p: &mut CliTester) -> Result<()> { p.expect("searching for your details...\r\n")?; p.expect("\r")?; -- cgit v1.2.3