pub async fn mock_server_loop(port: u16, state: State) -> Result<()>
Run the server loop with the provided State