コード例 #1
0
ファイル: test_pinger.py プロジェクト: simudream/pants
 def setUp(self):
   timeout = setup_delayed_server(self.timeout_seconds)
   slow = setup_delayed_server(self.slow_seconds)
   fast = setup_delayed_server(self.fast_seconds)
   self.servers = [timeout, slow, fast]
   self.fast_netloc = 'localhost:{}'.format(fast.socket.getsockname()[1])
   self.slow_netloc = 'localhost:{}'.format(slow.socket.getsockname()[1])
   self.timeout_netloc = 'localhost:{}'.format(timeout.socket.getsockname()[1])
コード例 #2
0
ファイル: test_pinger.py プロジェクト: Gointer/pants
 def setUp(self):
   unreachable = setup_delayed_server(self.unreachable_delay_seconds)
   slow = setup_delayed_server(self.slow_delay_seconds)
   fast = setup_delayed_server(self.fast_delay_seconds)
   self.servers = [unreachable, slow, fast]
   self.fast_netloc = 'localhost:{}'.format(fast.socket.getsockname()[1])
   self.slow_netloc = 'localhost:{}'.format(slow.socket.getsockname()[1])
   self.unreachable_netloc = 'localhost:{}'.format(unreachable.socket.getsockname()[1])
コード例 #3
0
 def setUp(self):
   unreachable = setup_delayed_server(self.unreachable_delay_seconds)
   slow = setup_delayed_server(self.slow_delay_seconds)
   fast = setup_delayed_server(self.fast_delay_seconds)
   self.servers = [unreachable, slow, fast]
   self.fast_netloc = 'localhost:{}'.format(fast.socket.getsockname()[1])
   self.slow_netloc = 'localhost:{}'.format(slow.socket.getsockname()[1])
   self.unreachable_netloc = 'localhost:{}'.format(unreachable.socket.getsockname()[1])
コード例 #4
0
ファイル: test_pinger.py プロジェクト: tglstory/pants
 def setUp(self):
   unreachable = setup_delayed_server(self.unreachable_delay_seconds)
   slow = setup_delayed_server(self.slow_delay_seconds)
   fast = setup_delayed_server(self.fast_delay_seconds)
   self.servers = [unreachable, slow, fast]
   self.fast_netloc = 'http://localhost:{}'.format(fast.socket.getsockname()[1])
   self.slow_netloc = 'http://localhost:{}'.format(slow.socket.getsockname()[1])
   self.unreachable_netloc = 'http://localhost:{}'.format(unreachable.socket.getsockname()[1])
   self.https_external_netlock = 'https://github.com'