Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Unified Diff: tests/standalone/io/socket_source_address_test.dart

Issue 2682943009: Fix socket_source_address_test (Closed)
Patch Set: another fix Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698