async fn restart(&mut self) {
        let mut ready_guard = self.ready.lock().await;
        let mut server_process = self.server_process.lock().await;
        kill_politely(&mut server_process.child, Duration::from_secs(5));
        *server_process =
            Self::create_server_process(&self.test_config, Some(server_process.log_path.clone()))
                .await;
        *ready_guard = ServerState::Started;
    }
/// Restarts the tests server process, but does not reconnect clients
Restarts the tests server process, but does not reconnect clients
Restarts the tests server process but does not reconnect clients
async fn restart(&mut self) {
        let mut ready_guard = self.ready.lock().await;
        let mut server_process = self.server_process.lock().await;
        kill_politely(&mut server_process.child, Duration::from_secs(5));
        *server_process =
            Self::create_server_process(&self.test_config, Some(server_process.log_path.clone()))
                .await;
        *ready_guard = ServerState::Started;
    }
async fn restart ( & mut self ) { let mut ready_guard = self . ready . lock ( ) . await ; let mut server_process = self . server_process . lock ( ) . await ; kill_politely ( & mut server_process . child , Duration :: from_secs ( 5 ) ) ; * server_process = Self :: create_server_process ( & self . test_config , Some ( server_process . log_path . clone ( ) ) ) . await ; * ready_guard = ServerState :: Started ; }
Restarts the tests server process, but does not reconnect clients
Restarts the tests server process but does not reconnect clients
&mut self
&mut self