Timed out. search by Google
/usr/local/lib/python3.7/unittest/case.py in testPartExecutor (arguments ▶)
- @contextlib.contextmanager
- def testPartExecutor(self, test_case, isTest=False):
- old_success = self.success
- self.success = True
- try:
- yield
- except KeyboardInterrupt:
- raise
- except SkipTest as e:
- self.success = False
/usr/local/lib/python3.7/unittest/case.py in run (arguments ▶)
- outcome = _Outcome(result)
- try:
- self._outcome = outcome
- with outcome.testPartExecutor(self):
- self.setUp()
- if outcome.success:
- outcome.expecting_failure = expecting_failure
- with outcome.testPartExecutor(self, isTest=True):
- testMethod()
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/vpc/metadata.py in setUp (arguments ▶)
- self._keypath, self._instance = self.run_instance_from_template(
- security_group_ids=[self.default_group().id, group.id],
- user_data="test-user-data",
- public_addressing=True)
- utils.long_ssh_test(self._keypath, self._instance)
- def _query(self, path):
- """Metadata query helper.
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in long_ssh_test (arguments ▶)
- def long_ssh_test(keypath, instance):
- """Getting instance id frome metadata server w/retries"""
- wait_long(lambda: ssh_test(instance.ip_address, keypath) == instance.id)
- def check_ssh(instance):
- """Helper for parallel using of 'long_ssh_test'."""
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait_long (arguments ▶)
- def wait_long(func, *args, **kwargs):
- """Fail unless func return success within the long timeout"""
- return wait(5 * constants.MINUTE_SECONDS, func, *args, **kwargs)
- def wait_long_enough(func, *args, **kwargs):
- """Fail unless func return success within the enough long timeout."""
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait (arguments ▶)
- result = func(*args, **kwargs)
- if result:
- return result
- time.sleep(min(timeout, 0.1))
- raise exceptions.TimeoutException()
- def wait_short(func, *args, **kwargs):
- """Fail unless func return success within the timeout"""