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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gardening/test/bot_test.dart
diff --git a/tools/gardening/test/bot_test.dart b/tools/gardening/test/bot_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..43bb2435953d82495bec5be5edda4705de8d26d9
--- /dev/null
+++ b/tools/gardening/test/bot_test.dart
@@ -0,0 +1,20 @@
+// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+import 'package:expect/expect.dart';
+import 'package:gardening/src/bot.dart';
+import 'package:gardening/src/buildbot_data.dart';
+import 'package:gardening/src/buildbot_structures.dart';
+import 'test_client.dart';
+
+main() async {
+ Bot bot = new Bot.internal(new DummyClient());
+ List<BuildUri> buildUriList = buildGroups
+ .firstWhere((g) => g.groupName == 'dart2js-linux')
+ .createUris(bot.mostRecentBuildNumber);
+ Expect.isTrue(buildUriList.length > Bot.maxParallel);
+ List<BuildResult> buildResults = await bot.readResults(buildUriList);
+ Expect.equals(buildUriList.length, buildResults.length);
+ bot.close();
+}
« 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