OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 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. |
| 4 |
| 5 import 'package:expect/expect.dart'; |
| 6 import 'package:gardening/src/bot.dart'; |
| 7 import 'package:gardening/src/buildbot_data.dart'; |
| 8 import 'package:gardening/src/buildbot_structures.dart'; |
| 9 import 'test_client.dart'; |
| 10 |
| 11 main() async { |
| 12 Bot bot = new Bot.internal(new DummyClient()); |
| 13 List<BuildUri> buildUriList = buildGroups |
| 14 .firstWhere((g) => g.groupName == 'dart2js-linux') |
| 15 .createUris(bot.mostRecentBuildNumber); |
| 16 Expect.isTrue(buildUriList.length > Bot.maxParallel); |
| 17 List<BuildResult> buildResults = await bot.readResults(buildUriList); |
| 18 Expect.equals(buildUriList.length, buildResults.length); |
| 19 bot.close(); |
| 20 } |
OLD | NEW |