Example #1
0
 def add_node_hook(node_ip, node_port, node_type, timeout=5):
     print("Failure 1")
     global test_no_1_success
     test_no_1_success = 0
     s = Sock()
     s.connected = 1
     return s
Example #2
0
 def inbound_con_by_ip(ip):
     print("Failure 2")
     global test_no_1_success
     test_no_1_success = 0
     s = Sock()
     s.connected = 1
     return s
Example #3
0
 def inbound_con_by_ip(ip):
     print("Failure 2")
     global test_no_1_success
     test_no_1_success = 0
     s = Sock()
     s.connected = 1
     return s
Example #4
0
 def add_node_hook(node_ip, node_port, node_type, timeout=5):
     print("Failure 1")
     global test_no_1_success
     test_no_1_success = 0
     s = Sock()
     s.connected = 1
     return s
Example #5
0
 def inbound_con_by_ip(ip):
     s = Sock()
     s.connected = 1
     return s
Example #6
0
 def add_node_hook(node_ip, node_port, node_type, timeout=5):
     s = Sock()
     s.connected = 1
     return s
Example #7
0
 def inbound_con_by_ip(ip):
     s = Sock()
     s.connected = 1
     return s
Example #8
0
 def add_node_hook(node_ip, node_port, node_type, timeout=5):
     s = Sock()
     s.connected = 1
     return s