diff options
Diffstat (limited to 'tests/init.rs')
| -rw-r--r-- | tests/init.rs | 8 |
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 | ||