From 2b981315e765e7a4722cfd95777ee560d575fa06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Thu, 28 Dec 2023 20:03:20 +0000 Subject: [PATCH] rustfmt --- nexus/server/tests/server_test.rs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/nexus/server/tests/server_test.rs b/nexus/server/tests/server_test.rs index 5b0938fb60..0c20130a2b 100644 --- a/nexus/server/tests/server_test.rs +++ b/nexus/server/tests/server_test.rs @@ -51,7 +51,13 @@ impl PeerDBServer { let server_port_str = server_port.to_string(); let console_bind = format!("127.0.0.1:{}", 6669 + port_offset); let mut server_start = Command::new("cargo"); - server_start.envs(std::env::vars().into_iter().chain([("TOKIO_CONSOLE_BIND".into(), console_bind)].iter().cloned())); + server_start.envs( + std::env::vars().into_iter().chain( + [("TOKIO_CONSOLE_BIND".into(), console_bind)] + .iter() + .cloned(), + ), + ); server_start.args(["run", "--", "--port", &server_port_str]); tracing::info!("Starting server..."); @@ -63,11 +69,17 @@ impl PeerDBServer { thread::sleep(Duration::from_millis(5000)); tracing::info!("peerdb-server Server started"); - Self { server: child, port: server_port } + Self { + server: child, + port: server_port, + } } fn connect_dying(&self) -> Client { - let connection_string = format!("host=localhost port={} password=peerdb user=peerdb", self.port); + let connection_string = format!( + "host=localhost port={} password=peerdb user=peerdb", + self.port + ); let mut client_result = Client::connect(&connection_string, NoTls); let mut client_established = false;