| Index: tests/standalone/io/socket_source_address_test.dart
|
| diff --git a/tests/standalone/io/socket_source_address_test.dart b/tests/standalone/io/socket_source_address_test.dart
|
| index 8f076ed25f34f5dffd5c5d3d3b5b86d6767c024b..9670ac546011697e3b1210e250181a45ac9db61e 100644
|
| --- a/tests/standalone/io/socket_source_address_test.dart
|
| +++ b/tests/standalone/io/socket_source_address_test.dart
|
| @@ -107,9 +107,9 @@ Future testConnect(InternetAddress bindAddress,
|
| sourceAddress: sourceAddress);
|
| closeDestroyFunction(s);
|
| } else {
|
| - // Cannot use an IPv6 source address to connect to IPv6 if
|
| + // Cannot use an IPv4 source address to connect to IPv6 if
|
| // v6Only is specified.
|
| - await throws(() => connectFunction(InternetAddress.LOOPBACK_IP_V4,
|
| + await throws(() => connectFunction(InternetAddress.LOOPBACK_IP_V6,
|
| server.port,
|
| sourceAddress: sourceAddress),
|
| (e) => e is SocketException);
|
| @@ -125,7 +125,7 @@ Future testConnect(InternetAddress bindAddress,
|
| closeDestroyFunction(s);
|
| } else {
|
| // Cannot use an IPv6 source address to connect to IPv4.
|
| - await throws(() => connectFunction(InternetAddress.LOOPBACK_IP_V6,
|
| + await throws(() => connectFunction(InternetAddress.LOOPBACK_IP_V4,
|
| server.port,
|
| sourceAddress: sourceAddress),
|
| (e) => e is SocketException);
|
|
|