upleb.uk

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

summaryrefslogtreecommitdiff
path: root/test_utils/src/lib.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-07-31 11:22:32 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-07-31 11:22:32 +0100
commit81cc75378388fe1369ef9b2600608adbdde56ffc (patch)
tree1814adf0dea0d1c872ac40b3bd159dead896f933 /test_utils/src/lib.rs
parentfea2e0a7c06acb2bd6223d24b80b2509c13e460d (diff)
test(remote): `list` returns HEAD and main
returns head and main branch head
Diffstat (limited to 'test_utils/src/lib.rs')
-rw-r--r--test_utils/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/test_utils/src/lib.rs b/test_utils/src/lib.rs
index 7697e6f..7a2bf35 100644
--- a/test_utils/src/lib.rs
+++ b/test_utils/src/lib.rs
@@ -150,10 +150,10 @@ pub fn make_event_old_or_change_user(
150} 150}
151 151
152pub fn generate_repo_ref_event() -> nostr::Event { 152pub fn generate_repo_ref_event() -> nostr::Event {
153 generate_repo_ref_event_with_git_server("git:://123.gitexample.com/test".to_string()) 153 generate_repo_ref_event_with_git_server("git:://123.gitexample.com/test")
154} 154}
155 155
156pub fn generate_repo_ref_event_with_git_server(git_server: String) -> nostr::Event { 156pub fn generate_repo_ref_event_with_git_server(git_server: &str) -> nostr::Event {
157 // taken from test git_repo 157 // taken from test git_repo
158 // TODO - this may not be consistant across computers as it might take the 158 // TODO - this may not be consistant across computers as it might take the
159 // author and committer from global git config 159 // author and committer from global git config
@@ -171,7 +171,7 @@ pub fn generate_repo_ref_event_with_git_server(git_server: String) -> nostr::Eve
171 Tag::from_standardized(TagStandard::Description("example description".into())), 171 Tag::from_standardized(TagStandard::Description("example description".into())),
172 Tag::custom( 172 Tag::custom(
173 nostr::TagKind::Custom(std::borrow::Cow::Borrowed("clone")), 173 nostr::TagKind::Custom(std::borrow::Cow::Borrowed("clone")),
174 vec![git_server], 174 vec![git_server.to_string()],
175 ), 175 ),
176 Tag::custom( 176 Tag::custom(
177 nostr::TagKind::Custom(std::borrow::Cow::Borrowed("web")), 177 nostr::TagKind::Custom(std::borrow::Cow::Borrowed("web")),
@@ -887,7 +887,7 @@ impl CliTester {
887 self.expect_end() 887 self.expect_end()
888 } 888 }
889 889
890 fn send_line(&mut self, line: &str) -> Result<()> { 890 pub fn send_line(&mut self, line: &str) -> Result<()> {
891 self.rexpect_session 891 self.rexpect_session
892 .send_line(line) 892 .send_line(line)
893 .context("send_line failed")?; 893 .context("send_line failed")?;