def wait_for_servers(self, timeout=10):
        """Waits for all servers to to be up and running."""
        unconnected_servers = dict((x.socket_path, x)
                                   for x in self.servers)
        now = time.time()
        while unconnected_servers:
            for server in unconnected_servers.itervalues():
                if server.test_connection():
                    unconnected_servers.pop(server.socket_path, None)
                    break
            if time.time() > now + timeout:
                return False
            if unconnected_servers:
                time.sleep(0.05)

        return True
dataset/ETHPy150Open getsentry/rb/rb/testing.py/TestSetup.wait_for_servers/original