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

Unified Diff: appengine/findit/waterfall/test/try_job_util_test.py

Issue 1810683002: [Findit] Fix KeyError when no failed targets are extracted. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | appengine/findit/waterfall/try_job_util.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/waterfall/test/try_job_util_test.py
diff --git a/appengine/findit/waterfall/test/try_job_util_test.py b/appengine/findit/waterfall/test/try_job_util_test.py
index 339550a17bf62aa20d3234080e367792dcbffa70..72a1c76bf8fbf84ce3f43f372905f6d0ff2ea61a 100644
--- a/appengine/findit/waterfall/test/try_job_util_test.py
+++ b/appengine/findit/waterfall/test/try_job_util_test.py
@@ -384,6 +384,10 @@ class TryJobUtilTest(testing.AppengineTestCase):
self.assertEqual(
try_job_util._GetFailedTargetsFromSignals({}, 'm', 'b'), [])
+ self.assertEqual(
+ try_job_util._GetFailedTargetsFromSignals({'compile': {}}, 'm', 'b'),
+ [])
+
signals = {
'compile': {
'failed_targets': [
« no previous file with comments | « no previous file | appengine/findit/waterfall/try_job_util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698