mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Use the protocol specified by the Test Parameter in dualstack socket tests
Correct a typo which hard-coded the protocol to UDP for the `V4ListenerV6Connect` test. PiperOrigin-RevId: 582347221
This commit is contained in:
@@ -239,8 +239,9 @@ TEST_P(DualStackAfMismatchTest, V6ListenerV4Connect) {
|
||||
TEST_P(DualStackAfMismatchTest, V4ListenerV6Connect) {
|
||||
// Gvisor does not return the correct Errno.
|
||||
SKIP_IF(IsRunningOnGvisor());
|
||||
ProtocolTestParam const& param = GetParam();
|
||||
const FileDescriptor socket_fd =
|
||||
ASSERT_NO_ERRNO_AND_VALUE(Socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP));
|
||||
ASSERT_NO_ERRNO_AND_VALUE(Socket(AF_INET6, param.type, 0));
|
||||
|
||||
const TestAddress& v6_addr = V6Loopback();
|
||||
const TestAddress& v4_addr = V4MappedLoopback();
|
||||
|
||||
Reference in New Issue
Block a user