        let addr = self.sock_addr();

        thread::spawn(move || {
            self.server.listen_on_socket(self.listener_sock);
        });
        Self::wait_for_health_check(addr);
    }

    fn wait_for_health_check(addr: SocketAddr) {
        let client = reqwest::blocking::Client::builder()
            .timeout(Some(Duration::from_secs(1)))
            .build()
            .expect("failed to build a reqwest client");
