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

Unified Diff: telemetry/telemetry/internal/results/csv_pivot_table_output_formatter_unittest.py

Issue 2294593002: Fix csv_pivot_table_output_formatter_unittest's flakiness (Closed)
Patch Set: Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/internal/results/csv_pivot_table_output_formatter_unittest.py
diff --git a/telemetry/telemetry/internal/results/csv_pivot_table_output_formatter_unittest.py b/telemetry/telemetry/internal/results/csv_pivot_table_output_formatter_unittest.py
index e15e1903a270c05c354c8a6181db863b8e0efe3d..93314ad630a63a408d8532a6b5991990d7d42940 100644
--- a/telemetry/telemetry/internal/results/csv_pivot_table_output_formatter_unittest.py
+++ b/telemetry/telemetry/internal/results/csv_pivot_table_output_formatter_unittest.py
@@ -104,7 +104,8 @@ class CsvPivotTableOutputFormatterTest(unittest.TestCase):
self.assertEquals(len(values), 5) # We expect 5 value in total.
self.assertEquals(len(set((v[1] for v in values))), 2) # 2 pages.
self.assertEquals(len(set((v[2] for v in values))), 4) # 4 value names.
- self.assertEquals(values[2],
+ trace_value_csv_row = list(v for v in values if v[2] == 'trace')[0]
+ self.assertEquals(trace_value_csv_row,
['story_set', 'http://www.bar.com/', 'trace',
'https://cloud_storage_url/foo', '', '1'])
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698