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 4b95433e2bc4350dcc02fe14dc5c4c038a9dac4e..64dc490bde9ae3a1cf28aca43dc96927559dd90a 100644 |
--- a/tests/standalone/io/socket_source_address_test.dart |
+++ b/tests/standalone/io/socket_source_address_test.dart |
@@ -43,7 +43,8 @@ Future testArguments(connectFunction) async { |
await throws(() => connectFunction('127.0.0.1', |
server.port, |
sourceAddress: sourceAddress), |
- (e) => e is SocketException); |
+ (e) => e is SocketException && |
+ e.address == new InternetAddress('8.8.8.8')); |
} |
// Address family mismatch. |
for (sourceAddress in ['::1', InternetAddress.LOOPBACK_IP_V6]) { |