From 142fee58b0449b3fe3f436986339c318de66b33f Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Mon, 15 Jul 2024 17:14:09 +0100 Subject: feat(fetch): fetch events and save to cache enabler to add simplicity, efficency and offline capability to other functions improve repo announcement selection --- tests/init.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests') 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 { let mut file = fs::File::open(yaml_path).expect("no such file"); let mut file_contents = "".to_string(); let _ = file.read_to_string(&mut file_contents); + + for p in [51, 52, 53, 55, 56, 57] { + relay::shutdown_relay(8000 + p)?; + } assert_eq!( file_contents, format!( "\ + identifier: example-identifier\n\ maintainers:\n\ - {TEST_KEY_1_NPUB}\n\ relays:\n\ @@ -247,9 +252,6 @@ mod when_repo_not_previously_claimed { " ), ); - for p in [51, 52, 53, 55, 56, 57] { - relay::shutdown_relay(8000 + p)?; - } Ok(()) }); -- cgit v1.2.3