Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix two broken unit tests #53

Open
LipuFei opened this issue Jan 27, 2015 · 0 comments
Open

Fix two broken unit tests #53

LipuFei opened this issue Jan 27, 2015 · 0 comments

Comments

@LipuFei
Copy link
Contributor

LipuFei commented Jan 27, 2015

Two unit tests are broken:

======================================================================
ERROR: test_report_unreachable (pymdht.core.test_boostrap.TestBootstrap)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lfei/workspace/tud/p2p/pymdht/core/test_boostrap.py", line 53, in test_report_unreachable
    b.report_unreachable(addrs[0])
IndexError: list index out of range
-------------------- >> begin captured logging << --------------------
dht: DEBUG: bootstrap_stable: 1 hardcoded, 1 stable
dht: DEBUG: bootstrap_stable: 1 hardcoded, 0 unstable
dht: DEBUG: bootstrap_unstable: 2006 hardcoded, 0 unstable
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_general (pymdht.core.test_boostrap.TestBootstrap)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lfei/workspace/tud/p2p/pymdht/core/test_boostrap.py", line 28, in test_general
    self.assertEqual(len(b.get_sample_unstable_addrs(5)), 5)
AssertionError: 0 != 5
-------------------- >> begin captured logging << --------------------
dht: DEBUG: bootstrap_stable: 1 hardcoded, 1 stable
dht: DEBUG: bootstrap_stable: 1 hardcoded, 0 unstable
dht: DEBUG: bootstrap_unstable: 2006 hardcoded, 0 unstable
--------------------- >> end captured logging << ---------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant