-
Notifications
You must be signed in to change notification settings - Fork 12
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
Test is passing for wrong reason #704
Comments
Perhaps before spending too much effort on making this test pass correctly, figure out exactly what it's supposed to be testing and whether it has become obsolete (or perhaps was wrong-headed in the first place). It's making a triangle of Nodes and then asserting that no over-and-back route with a minimum hop count of 1 can be found through them. That seems strange to me: I could find at least four routes: A -> B, B -> A Maybe the test should just be deleted. |
There may be other problems with this test: for one thing, it claims to use no consuming wallet when it looks as though the subject definitely does have a consuming wallet. Also, it talks about needing a two-hop return route, but I can't see why that would be necessary. Basically, review this test and correct what needs to be corrected. |
We have found this test as obsolete and we decided to delete it. Dan's note: Now, though, we have one-hop routes that are data routes and need to have consuming wallets so that the exit Node can be paid, but they don't require consuming wallets because the routing code thinks they're Gossip routes. This isn't an immediate problem, because our code is dropping consuming wallets into all the data routes anyway (I think); but it's something we didn't notice when we shrank the min-hops requirement, and we should keep it in mind. |
The test
route_query_responds_with_none_when_asked_for_one_hop_round_trip_route_without_consuming_wallet_when_back_route_needs_two_hops
is passing due to an unintended configuration rather than the intended behaviour.It claims to be stimulating a failed query because of a hop-count problem when the query is actually failing because there are no full neighborships. If the test uses
.add_arbitrary_full_neighbor
instead of.add_arbitrary_half_neighbor
, and theRouteQueryResponse
turns out to beNone
, then the test is doing what the name suggests.If you try replacing the function mentioned above, you'd find that we receive a
RouteQueryResponse
but if the test was doing as the name suggests, we shouldn't be receiving any response.The text was updated successfully, but these errors were encountered: