async fn stop_server(&mut self) {
        let join_handle = match self.server_join_handle.take() {
            Some(join_handle) => join_handle,
            None => return,
        };
        self.server_stopper.stop();
        time::timeout(MAX_TEST_TIME, join_handle)
            .await
            .expect("stopping server timed out (test hung)")
            .expect("server task should not error");
    }
/// Stops the currently-running server, if any, panicking if unable to stop the server within
/// `MAX_TEST_TIME`.
///
/// Must be called and awaited before starting a new server with this particular `TestFixture`.
///
/// Should be called in every test where a server has been started, since this will ensure
/// failed tests won't hang indefinitely.
Stops the currently-running server, if any, panicking if unable to stop the server within
`MAX_TEST_TIME`.

Must be called and awaited before starting a new server with this particular `TestFixture`.

Should be called in every test where a server has been started, since this will ensure
failed tests won't hang indefinitely.
Stops the currently - running server if any panicking if unable to stop the server within ` MAX_TEST_TIME ` . Must be called and awaited before starting a new server with this particular ` TestFixture ` . Should be called in every test where a server has been started since this will ensure failed tests won ' t hang indefinitely .
async fn stop_server(&mut self) {
        let join_handle = match self.server_join_handle.take() {
            Some(join_handle) => join_handle,
            None => return,
        };
        self.server_stopper.stop();
        time::timeout(MAX_TEST_TIME, join_handle)
            .await
            .expect("stopping server timed out (test hung)")
            .expect("server task should not error");
    }
async fn stop_server ( & mut self ) { let join_handle = match self . server_join_handle . take ( ) { Some ( join_handle ) => join_handle , None => return , } ; self . server_stopper . stop ( ) ; time :: timeout ( MAX_TEST_TIME , join_handle ) . await . expect ( " " ) . expect ( " " ) ; }
Stops the currently-running server, if any, panicking if unable to stop the server within
`MAX_TEST_TIME`.
Stops the currently - running server if any panicking if unable to stop the server within ` MAX_TEST_TIME ` .
&mut self
&mut self