-
Notifications
You must be signed in to change notification settings - Fork 46
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
Errors in unit tests when running with IPv6 enabled #1243
Comments
I set up the diff --git a/ipv8/dht/community.py b/ipv8/dht/community.py
index 1a23252..26b5ca9 100644
--- a/ipv8/dht/community.py
+++ b/ipv8/dht/community.py
@@ -680,6 +680,7 @@ class DHTCommunity(Community):
nodes = routing_table.closest_nodes(payload.target, exclude_node=node, max_nodes=MAX_NODES_IN_FIND)
# Send puncture request to the closest node
if nodes:
+ print(self.endpoint.wan_address, "FIND REQUEST", nodes[0].address)
packet = self.create_puncture_request(payload.lan_address, peer.address, payload.identifier)
self.endpoint.send(nodes[0].address, packet)
This led to the following output:
At this point, my intuition (this may be wrong) is that the reported IP strings are not an exact match and that this is causing the error:
|
Confirmed that this test always fails if I change the following line: py-ipv8/ipv8/test/mocking/endpoint.py Line 166 in f42121a
to be: b0 = 11 Update: actually, setting any of these values |
When running the unit tests with
TEST_IPV8_WITH_IPV6=1
set, the following errors sometimes appear.The text was updated successfully, but these errors were encountered: