提交 a54b43cd 编写于 作者: V Vladimir Chebotarev

Better test, minor fix.

上级 1b715069
......@@ -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 = []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册