Skip to content

Commit 42f7e47

Browse files
committed
wip: chase CI-only test failure
1 parent d78acd9 commit 42f7e47

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

test/functional/feature_bind_extra.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
that bind happens on the expected ports.
88
"""
99

10+
import socket
1011
import sys
1112

1213
from test_framework.netutil import (
1314
addr_to_hex,
1415
get_bind_addrs,
16+
netstat,
1517
test_ipv6_local,
1618
)
1719
from test_framework.test_framework import (
@@ -50,6 +52,9 @@ def setup_network(self):
5052

5153
self.have_ipv6 = test_ipv6_local()
5254

55+
if self.have_ipv6:
56+
self.log.info("IPv6 support detected")
57+
5358
any_ipv4 = addr_to_hex('0.0.0.0')
5459
any_ipv6 = addr_to_hex('::')
5560
loopback_ipv4 = addr_to_hex('127.0.0.1')
@@ -109,6 +114,31 @@ def setup_network(self):
109114
self.setup_nodes()
110115

111116
def run_test(self):
117+
self.log.info("TTT 1")
118+
try:
119+
self.log.info("TTT 2")
120+
s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
121+
self.log.info("TTT 3")
122+
s.connect(('::1', 1234))
123+
self.log.info("TTT 4")
124+
except Exception as e:
125+
self.log.info("TTT 5")
126+
self.log.info(e)
127+
self.log.info("TTT 6")
128+
129+
self.log.info('run_test(): netstat TCP')
130+
for conn in netstat('tcp'):
131+
self.log.info(conn)
132+
133+
self.log.info('run_test(): netstat TCP6')
134+
for conn in netstat('tcp6'):
135+
self.log.info(conn)
136+
137+
import subprocess
138+
self.log.info('interfaces:')
139+
ifc = subprocess.run('/sbin/ifconfig', capture_output=True)
140+
self.log.info(ifc.stdout.decode('UTF-8'))
141+
112142
for i in range(len(self.expected)):
113143
pid = self.nodes[i].process.pid
114144
assert_equal(set(get_bind_addrs(pid)), set(self.expected[i][1]))

0 commit comments

Comments
 (0)