-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Question about TableTraverser __next__ method #51
Comments
Yes, I think you're right! If you've got time - can you write a test showing the failure? And put that in a pull request along with changing that line to |
Hi, when I writing test case for First, I can make nodes id calculated accurately , so that when call Second way is what I made in the pull request, I make fake buckets and nodes, then replace routing table's default range [0,2**160] bucket with my fake ones. Then test the TableTraverser. The shortcoming is the test case relies on The third way is make Looking forward to your advice. Thanks! |
Hey @imnisen - thanks for the PR! The way you wrote the test was fine. In general, since your'e testing |
Hi, in TableTraverser code as below , when pop an item from rightBuckets, should it pop from the let side from the rightBuckets list ? Because it is nearer, however
pop()
function pop from right side.Thanks!
The text was updated successfully, but these errors were encountered: