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

Unified Diff: dashboard/dashboard/pinpoint/models/quest/read_value_test.py

Issue 3008183002: [pinpoint] Separate Execution exceptions from result_values. (Closed)
Patch Set: Fix exception loop Created 3 years, 3 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
Index: dashboard/dashboard/pinpoint/models/quest/read_value_test.py
diff --git a/dashboard/dashboard/pinpoint/models/quest/read_value_test.py b/dashboard/dashboard/pinpoint/models/quest/read_value_test.py
index f41ea71581c219927fb926b1c64a0806b910a1b3..1ef259e7bfd9f2ee819744f5d0306627ed5991bb 100644
--- a/dashboard/dashboard/pinpoint/models/quest/read_value_test.py
+++ b/dashboard/dashboard/pinpoint/models/quest/read_value_test.py
@@ -15,9 +15,8 @@ class _ReadValueTest(unittest.TestCase):
def assertReadValueError(self, execution):
self.assertTrue(execution.completed)
self.assertTrue(execution.failed)
- self.assertEqual(len(execution.result_values), 1)
- self.assertIsInstance(execution.result_values[0], basestring)
- last_exception_line = execution.result_values[0].splitlines()[-1]
+ self.assertIsInstance(execution.exception, basestring)
+ last_exception_line = execution.exception.splitlines()[-1]
self.assertTrue(last_exception_line.startswith('ReadValueError'))

Powered by Google App Engine
This is Rietveld 408576698