upleb.uk

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

summaryrefslogtreecommitdiff
path: root/tests/init.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-07-15 17:14:09 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-07-15 17:18:36 +0100
commit142fee58b0449b3fe3f436986339c318de66b33f (patch)
tree61d4c78e4fed0024d426dd444424b58c36fecf5b /tests/init.rs
parentba82a894fad645757c49242c11573b6c5dd8d1e6 (diff)
feat(fetch): fetch events and save to cache
enabler to add simplicity, efficency and offline capability to other functions improve repo announcement selection
Diffstat (limited to 'tests/init.rs')
-rw-r--r--tests/init.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/init.rs b/tests/init.rs
index 4e4b04f..c7f26c4 100644
--- a/tests/init.rs
+++ b/tests/init.rs
@@ -235,10 +235,15 @@ mod when_repo_not_previously_claimed {
235 let mut file = fs::File::open(yaml_path).expect("no such file"); 235 let mut file = fs::File::open(yaml_path).expect("no such file");
236 let mut file_contents = "".to_string(); 236 let mut file_contents = "".to_string();
237 let _ = file.read_to_string(&mut file_contents); 237 let _ = file.read_to_string(&mut file_contents);
238
239 for p in [51, 52, 53, 55, 56, 57] {
240 relay::shutdown_relay(8000 + p)?;
241 }
238 assert_eq!( 242 assert_eq!(
239 file_contents, 243 file_contents,
240 format!( 244 format!(
241 "\ 245 "\
246 identifier: example-identifier\n\
242 maintainers:\n\ 247 maintainers:\n\
243 - {TEST_KEY_1_NPUB}\n\ 248 - {TEST_KEY_1_NPUB}\n\
244 relays:\n\ 249 relays:\n\
@@ -247,9 +252,6 @@ mod when_repo_not_previously_claimed {
247 " 252 "
248 ), 253 ),
249 ); 254 );
250 for p in [51, 52, 53, 55, 56, 57] {
251 relay::shutdown_relay(8000 + p)?;
252 }
253 Ok(()) 255 Ok(())
254 }); 256 });
255 257