Skip to content

Commit 1e2d1b2

Browse files
rmacnak-googleCommit Queue
authored andcommitted
[test] Fix slow async_catch_errors_test.
The default socket timeout is longer than the test timeout for some configurations. Change-Id: Iddf60b6d40b8aa00115463fe76f1d924a93424bf Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/329640 Commit-Queue: Ryan Macnak <[email protected]> Reviewed-by: Alexander Aprelev <[email protected]>
1 parent e743910 commit 1e2d1b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/standalone/io/async_catch_errors_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var events = [];
1313
Future testSocketException() {
1414
var completer = new Completer();
1515
runZonedGuarded(() {
16-
Socket.connect("4", 1).then((Socket s) {
16+
Socket.connect("4", 1, timeout: Duration(seconds: 5)).then((Socket s) {
1717
Expect.fail("Socket should not be able to connect");
1818
});
1919
}, (err, s) {

0 commit comments

Comments
 (0)