From ab8c6d61cd34e30de4e7196c83480c8c8a59bae0 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Wed, 29 May 2024 14:41:44 +0700 Subject: [PATCH] Revert "Merge #5988: test: disable ipv6 tests for now" This reverts commit 0bb188a07708cf7136225b81399c32749c8f1466, reversing changes made to 45bdfa582d3b0db209d296eb2ecee8bc5416a24c. --- test/functional/test_framework/netutil.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/test/functional/test_framework/netutil.py b/test/functional/test_framework/netutil.py index 8431b9020e..43ac9060e6 100644 --- a/test/functional/test_framework/netutil.py +++ b/test/functional/test_framework/netutil.py @@ -146,12 +146,10 @@ def test_ipv6_local(): ''' # By using SOCK_DGRAM this will not actually make a connection, but it will # fail if there is no route to IPv6 localhost. - return False - # TODO: disabled until amazon ipv6 issues are resolved - # have_ipv6 = True - # try: - # s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM) - # s.connect(('::1', 1)) - # except socket.error: - # have_ipv6 = False - # return have_ipv6 + have_ipv6 = True + try: + s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM) + s.connect(('::1', 1)) + except socket.error: + have_ipv6 = False + return have_ipv6