OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library test.runner.engine; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 import 'dart:collection'; | 6 import 'dart:collection'; |
9 | 7 |
10 import 'package:async/async.dart' hide Result; | 8 import 'package:async/async.dart' hide Result; |
11 import 'package:collection/collection.dart'; | 9 import 'package:collection/collection.dart'; |
12 import 'package:pool/pool.dart'; | 10 import 'package:pool/pool.dart'; |
13 | 11 |
14 import '../backend/group.dart'; | 12 import '../backend/group.dart'; |
15 import '../backend/invoker.dart'; | 13 import '../backend/invoker.dart'; |
16 import '../backend/live_test.dart'; | 14 import '../backend/live_test.dart'; |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 var futures = allLiveTests.map((liveTest) => liveTest.close()).toList(); | 424 var futures = allLiveTests.map((liveTest) => liveTest.close()).toList(); |
427 | 425 |
428 // Closing the load pool will close the test suites as soon as their tests | 426 // Closing the load pool will close the test suites as soon as their tests |
429 // are done. For browser suites this is effectively immediate since their | 427 // are done. For browser suites this is effectively immediate since their |
430 // tests shut down as soon as they're closed, but for VM suites we may need | 428 // tests shut down as soon as they're closed, but for VM suites we may need |
431 // to wait for tearDowns or tearDownAlls to run. | 429 // to wait for tearDowns or tearDownAlls to run. |
432 futures.add(_loadPool.close()); | 430 futures.add(_loadPool.close()); |
433 await Future.wait(futures, eagerError: true); | 431 await Future.wait(futures, eagerError: true); |
434 } | 432 } |
435 } | 433 } |
OLD | NEW |