mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
c721bad8cc
Since moby/libnetwork#2635 has been merged, allocatePortsInternal() checks if IPv6 is enabled by calling IsV6Listenable(). This function calls `net.Listen("tcp6", "[::1]:0")` and returns false when net.Listen() fails. TestPortMappingV6Config() starts by setting up a new net ns to run into it. The loopback interface is not bring up in this net ns, thus net.Listen() fails and IsV6Listenable() returns false. This change takes care of bringing loopback iface up right after moving to the new net ns. This test has been reported has flaky on s390x in #42468. For some reason, this test seems to be consistently green on the CI (on amd64 arch) and when running `hack/test/unit` locally. However it consistently fails when running `TESTFLAGS='-shuffle on' hack/test/unit` locally. Signed-off-by: Albin Kerouanton <albinker@gmail.com> |
||
---|---|---|
.. | ||
brmanager | ||
bridge.go | ||
bridge_store.go | ||
bridge_test.go | ||
errors.go | ||
interface.go | ||
interface_test.go | ||
labels.go | ||
link.go | ||
link_test.go | ||
netlink_deprecated_linux.go | ||
netlink_deprecated_linux_rawsockaddr_data_int8.go | ||
netlink_deprecated_linux_rawsockaddr_data_uint8.go | ||
netlink_deprecated_unsupported.go | ||
network_test.go | ||
port_mapping.go | ||
port_mapping_test.go | ||
setup.go | ||
setup_bridgenetfiltering.go | ||
setup_bridgenetfiltering_test.go | ||
setup_device.go | ||
setup_device_test.go | ||
setup_firewalld.go | ||
setup_ip_forwarding.go | ||
setup_ip_forwarding_test.go | ||
setup_ip_tables.go | ||
setup_ip_tables_test.go | ||
setup_ipv4.go | ||
setup_ipv4_test.go | ||
setup_ipv6.go | ||
setup_ipv6_test.go | ||
setup_verify.go | ||
setup_verify_test.go |