Skip to content

Commit 52fb3d3

Browse files
committed
Merged in Review 3
1 parent 813561d commit 52fb3d3

3 files changed

Lines changed: 10 additions & 15 deletions

File tree

node/src/neighborhood/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2216,8 +2216,7 @@ mod tests {
22162216
use crate::sub_lib::host::Host;
22172217
use crate::sub_lib::neighborhood::ExpectedServices::OneWay;
22182218
use crate::sub_lib::neighborhood::{
2219-
AskAboutDebutGossipMessage, ConfigChange, ConfigChangeMsg,
2220-
NeighborhoodMode, WalletPair,
2219+
AskAboutDebutGossipMessage, ConfigChange, ConfigChangeMsg, NeighborhoodMode, WalletPair,
22212220
};
22222221
use crate::sub_lib::neighborhood::{NeighborhoodConfig, DEFAULT_RATE_PACK};
22232222
use crate::sub_lib::neighborhood::{NeighborhoodMetadata, RatePack};

node/src/node_configurator/mod.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,7 @@ mod tests {
350350
use super::*;
351351
use crate::node_test_utils::DirsWrapperMock;
352352
use crate::test_utils::{assert_string_contains, ArgsBuilder};
353-
use masq_lib::shared_schema::{
354-
config_file_arg, data_directory_arg, DATA_DIRECTORY_HELP,
355-
};
353+
use masq_lib::shared_schema::{config_file_arg, data_directory_arg, DATA_DIRECTORY_HELP};
356354
use masq_lib::test_utils::environment_guard::EnvironmentGuard;
357355
use masq_lib::test_utils::utils::ensure_node_home_directory_exists;
358356
use masq_lib::utils::find_free_port;
@@ -404,7 +402,10 @@ mod tests {
404402
assert_string_contains(&param_error.reason, "error:");
405403
assert_string_contains(&param_error.reason, "Found argument '");
406404
assert_string_contains(&param_error.reason, "--booga-booga");
407-
assert_string_contains(&param_error.reason, "' which wasn't expected, or isn't valid in this context");
405+
assert_string_contains(
406+
&param_error.reason,
407+
"' which wasn't expected, or isn't valid in this context",
408+
);
408409
}
409410

410411
#[test]

node/src/proxy_server/mod.rs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5910,10 +5910,7 @@ mod tests {
59105910
system.run();
59115911
let recording = hopper_recording_arc.lock().unwrap();
59125912
let record = recording.get_record::<IncipientCoresPackage>(0);
5913-
assert_eq!(
5914-
record.route,
5915-
affected_route
5916-
);
5913+
assert_eq!(record.route, affected_route);
59175914
let payload = decodex::<MessageType>(&affected_cryptde, &record.payload).unwrap();
59185915
match payload {
59195916
MessageType::ClientRequest(vd) => assert_eq!(
@@ -6043,10 +6040,7 @@ mod tests {
60436040
system.run();
60446041
let recording = hopper_recording_arc.lock().unwrap();
60456042
let record = recording.get_record::<IncipientCoresPackage>(0);
6046-
assert_eq!(
6047-
record.route,
6048-
affected_route
6049-
);
6043+
assert_eq!(record.route, affected_route);
60506044
let payload = decodex::<MessageType>(&affected_cryptde, &record.payload).unwrap();
60516045
match payload {
60526046
MessageType::ClientRequest(vd) => assert_eq!(
@@ -6390,7 +6384,8 @@ mod tests {
63906384

63916385
#[test]
63926386
fn new_http_request_creates_new_exhausted_entry_inside_dns_retries_hashmap_zero_hop() {
6393-
let test_name = "new_http_request_creates_new_exhausted_entry_inside_dns_retries_hashmap_zero_hop";
6387+
let test_name =
6388+
"new_http_request_creates_new_exhausted_entry_inside_dns_retries_hashmap_zero_hop";
63946389
let http_request = b"GET /index.html HTTP/1.1\r\nHost: nowhere.com\r\n\r\n";
63956390
let (neighborhood_mock, _, _) = make_recorder();
63966391
let destination_key = PublicKey::from(&b"our destination"[..]);

0 commit comments

Comments
 (0)