def wait_for_pings(self, counter, timeout=float('inf')):

    def received_pongs():
        return all((node.received_ping_response(counter) for node in self.test_nodes))
    return wait_until(received_pongs, timeout=timeout)
def wait_for_pings(self, counter, timeout=float('inf')):

    def received_pongs():
        return all((node.received_ping_response(counter) for node in self.test_nodes))
    return wait_until(received_pongs, timeout=timeout)