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])
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])
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'