From 4dc5d0c9fb170981cf4fade5558d7cc8da404aa3 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 22 May 2025 16:20:25 +0100 Subject: feat(init): overhaul & simplify with ngit-relays introduce ngit-relays as a way of setting git servers and relays at the same time using a standard for specific repo locations: https:////.git add simple and advanced modes. prompt less. eg always set remote origin to nostr url. automatically push main or master branch. --- tests/ngit_init.rs | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'tests/ngit_init.rs') diff --git a/tests/ngit_init.rs b/tests/ngit_init.rs index 409bd51..70a3f57 100644 --- a/tests/ngit_init.rs +++ b/tests/ngit_init.rs @@ -11,15 +11,6 @@ fn expect_msgs_first(p: &mut CliTester) -> Result<()> { Ok(()) } -fn expect_prompt_to_set_origin(p: &mut CliTester) -> Result<()> { - p.expect_confirm_eventually( - "set remote \"origin\" to the nostr url of your repository?", - Some(true), - )? - .succeeds_with(Some(false))?; - Ok(()) -} - fn get_cli_args() -> Vec<&'static str> { vec![ "--nsec", @@ -101,7 +92,6 @@ mod when_repo_not_previously_claimed { // // check relay had the right number of events let cli_tester_handle = std::thread::spawn(move || -> Result<()> { let mut p = cli_tester_init(&git_repo); - expect_prompt_to_set_origin(&mut p)?; p.expect_end_eventually()?; for p in [51, 52, 53, 55, 56, 57] { relay::shutdown_relay(8000 + p)?; @@ -224,7 +214,6 @@ mod when_repo_not_previously_claimed { // // check relay had the right number of events let cli_tester_handle = std::thread::spawn(move || -> Result<()> { let mut p = cli_tester_init(&git_repo); - expect_prompt_to_set_origin(&mut p)?; p.expect_end_eventually()?; for p in [51, 52, 53, 55, 56, 57] { relay::shutdown_relay(8000 + p)?; @@ -495,7 +484,6 @@ mod when_repo_not_previously_claimed { ], 1, )?; - expect_prompt_to_set_origin(&mut p)?; p.expect_end_eventually()?; for p in [51, 52, 53, 55, 56, 57] { relay::shutdown_relay(8000 + p)?; -- cgit v1.2.3