Better test, minor fix.

This commit is contained in:
Vladimir Chebotarev 2019-09-13 13:04:21 +03:00
parent 1b715069fb
commit a54b43cd01

View File

@ -46,14 +46,7 @@ received_data_completed = False
def test_sophisticated_default(started_cluster):
instance = started_cluster.instances['dummy']
def GetCurrentIP():
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("8.8.8.8", 80))
ip = s.getsockname()[0]
s.close()
return ip
localhost = GetCurrentIP()
localhost = 'localhost'
def GetFreeTCPPorts(n):
result = []