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

Side by Side Diff: tools/gardening/test/bot_test.dart

Issue 2996013002: Fix index bug in readResults (Closed)
Patch Set: Created 3 years, 4 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 unified diff | Download patch
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « tools/gardening/lib/src/compare_failures_impl.dart ('k') | tools/gardening/test/test_client.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698