MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / wait_for_node_socket

Function wait_for_node_socket

tests/integration/__init__.py:373–378  ·  view source on GitHub ↗
(node, timeout)

Source from the content-addressed store, hash-verified

371libevtest = unittest.skipUnless(EVENT_LOOP_MANAGER=="libev", "Test timing designed for libev loop")
372
373def wait_for_node_socket(node, timeout):
374 binary_itf = node.network_interfaces['binary']
375 if not common.check_socket_listening(binary_itf, timeout=timeout):
376 log.warning("Unable to connect to binary socket for node " + node.name)
377 else:
378 log.debug("Node %s is up and listening " % (node.name,))
379
380
381def check_socket_listening(itf, timeout=60):

Callers 4

wait_for_upFunction · 0.90
use_cluster_with_graphFunction · 0.90
use_clusterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected