upleb.uk

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

summaryrefslogtreecommitdiff
path: root/tests/git_remote_nostr/push.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-09-11 15:51:10 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-09-12 07:20:44 +0100
commitc7faf80ab9d2639211d3978f1527286b3ce86ce0 (patch)
treef79cb9aceb925206d6fa6fc05268d3873a4ab4f5 /tests/git_remote_nostr/push.rs
parentdf1660b1b78b5881c64c6fadd4ae12c8c01c6684 (diff)
fix(remote): update copy
to make it more like native git
Diffstat (limited to 'tests/git_remote_nostr/push.rs')
-rw-r--r--tests/git_remote_nostr/push.rs32
1 files changed, 4 insertions, 28 deletions
diff --git a/tests/git_remote_nostr/push.rs b/tests/git_remote_nostr/push.rs
index f0d519e..5066d33 100644
--- a/tests/git_remote_nostr/push.rs
+++ b/tests/git_remote_nostr/push.rs
@@ -930,13 +930,7 @@ async fn proposal_merge_commit_pushed_to_main_leads_to_status_event_issued() ->
930 930
931 let mut p = CliTester::new_git_with_remote_helper_from_dir(&git_repo.dir, ["push"]); 931 let mut p = CliTester::new_git_with_remote_helper_from_dir(&git_repo.dir, ["push"]);
932 cli_expect_nostr_fetch(&mut p)?; 932 cli_expect_nostr_fetch(&mut p)?;
933 p.expect( 933 p.expect(format!("fetching {} ref list over filesystem...\r\n", source_path).as_str())?;
934 format!(
935 "fetching ref list over filesystem from {}...\r\n",
936 source_path
937 )
938 .as_str(),
939 )?;
940 934
941 p.expect("merge commit ")?; 935 p.expect("merge commit ")?;
942 // shorthand merge commit id appears in this gap 936 // shorthand merge commit id appears in this gap
@@ -1080,13 +1074,7 @@ async fn push_2_commits_to_existing_proposal() -> Result<()> {
1080 1074
1081 let mut p = CliTester::new_git_with_remote_helper_from_dir(&git_repo.dir, ["push"]); 1075 let mut p = CliTester::new_git_with_remote_helper_from_dir(&git_repo.dir, ["push"]);
1082 cli_expect_nostr_fetch(&mut p)?; 1076 cli_expect_nostr_fetch(&mut p)?;
1083 p.expect( 1077 p.expect(format!("fetching {} ref list over filesystem...\r\n", source_path).as_str())?;
1084 format!(
1085 "fetching ref list over filesystem from {}...\r\n",
1086 source_path
1087 )
1088 .as_str(),
1089 )?;
1090 p.expect(format!("To {}\r\n", get_nostr_remote_url()?).as_str())?; 1078 p.expect(format!("To {}\r\n", get_nostr_remote_url()?).as_str())?;
1091 let output = p.expect_end_eventually()?; 1079 let output = p.expect_end_eventually()?;
1092 1080
@@ -1240,13 +1228,7 @@ async fn force_push_creates_proposal_revision() -> Result<()> {
1240 let mut p = 1228 let mut p =
1241 CliTester::new_git_with_remote_helper_from_dir(&git_repo.dir, ["push", "--force"]); 1229 CliTester::new_git_with_remote_helper_from_dir(&git_repo.dir, ["push", "--force"]);
1242 cli_expect_nostr_fetch(&mut p)?; 1230 cli_expect_nostr_fetch(&mut p)?;
1243 p.expect( 1231 p.expect(format!("fetching {} ref list over filesystem...\r\n", source_path).as_str())?;
1244 format!(
1245 "fetching ref list over filesystem from {}...\r\n",
1246 source_path
1247 )
1248 .as_str(),
1249 )?;
1250 p.expect(format!("To {}\r\n", get_nostr_remote_url()?).as_str())?; 1232 p.expect(format!("To {}\r\n", get_nostr_remote_url()?).as_str())?;
1251 let output = p.expect_end_eventually()?; 1233 let output = p.expect_end_eventually()?;
1252 1234
@@ -1395,13 +1377,7 @@ async fn push_new_pr_branch_creates_proposal() -> Result<()> {
1395 ["push", "-u", "origin", branch_name], 1377 ["push", "-u", "origin", branch_name],
1396 ); 1378 );
1397 cli_expect_nostr_fetch(&mut p)?; 1379 cli_expect_nostr_fetch(&mut p)?;
1398 p.expect( 1380 p.expect(format!("fetching {} ref list over filesystem...\r\n", source_path).as_str())?;
1399 format!(
1400 "fetching ref list over filesystem from {}...\r\n",
1401 source_path
1402 )
1403 .as_str(),
1404 )?;
1405 p.expect(format!("To {}\r\n", get_nostr_remote_url()?).as_str())?; 1381 p.expect(format!("To {}\r\n", get_nostr_remote_url()?).as_str())?;
1406 let output = p.expect_end_eventually()?; 1382 let output = p.expect_end_eventually()?;
1407 1383