Merge #5988: test: disable ipv6 tests for now

10a006e626 test: disable ipv6 tests for now (UdjinM6)

Pull request description:

  ## Issue being fixed or feature implemented
  Our CI nodes on Amazon have issues running tests using ipv6.

  ## What was done?
  Pretend we don't have ipv6 when we run tests for now

  ## How Has This Been Tested?
  See CI results for this PR.

  ## Breaking Changes
  n/a but we'll have ipv6 not being tested for some time.

  ## Checklist:
  - [x] I have performed a self-review of my own code
  - [ ] I have commented my code, particularly in hard-to-understand areas
  - [ ] I have added or updated relevant unit/integration/functional/e2e tests
  - [ ] I have made corresponding changes to the documentation
  - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_

ACKs for top commit:
  kwvg:
    ACK 10a006e626
  PastaPastaPasta:
    utACK 10a006e

Tree-SHA512: 75da180b916a5a99b1363f152494cbdd1031c7daf2d5eb370ca74547dee694ad04db3e9c677f0f738b9dbb15760d685a6b43b032dde642a4c1d49fff671e2aac
This commit is contained in:
pasta 2024-04-23 09:30:16 -05:00
commit 0bb188a077
No known key found for this signature in database
GPG Key ID: 52527BEDABE87984

View File

@ -147,10 +147,12 @@ def test_ipv6_local():
''' '''
# By using SOCK_DGRAM this will not actually make a connection, but it will # By using SOCK_DGRAM this will not actually make a connection, but it will
# fail if there is no route to IPv6 localhost. # fail if there is no route to IPv6 localhost.
have_ipv6 = True return False
try: # TODO: disabled until amazon ipv6 issues are resolved
s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM) # have_ipv6 = True
s.connect(('::1', 1)) # try:
except socket.error: # s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
have_ipv6 = False # s.connect(('::1', 1))
return have_ipv6 # except socket.error:
# have_ipv6 = False
# return have_ipv6