Chromium Code Reviews| Index: pkg/analysis_server/benchmark/perf/analysis_timing_tests.dart |
| diff --git a/pkg/analysis_server/benchmark/perf/analysis_timing_tests.dart b/pkg/analysis_server/benchmark/perf/analysis_timing_tests.dart |
| index 3e3af149490f18db2d7157fd4dd079002ea3d151..60aaa7201b996a20691e8a29b9fa131cb81c0deb 100644 |
| --- a/pkg/analysis_server/benchmark/perf/analysis_timing_tests.dart |
| +++ b/pkg/analysis_server/benchmark/perf/analysis_timing_tests.dart |
| @@ -44,7 +44,7 @@ main(List<String> arguments) { |
| test = new SubscriptionTimingTest(); |
| } |
| - Future.wait([test.test_timing()]); |
| + Future.wait(<Future>[test.test_timing()]); |
|
Jennifer Messerly
2016/09/15 21:00:33
maybe put a type on "var test" above? Then it woul
Brian Wilkerson
2016/09/15 21:37:26
The superclass of those two classes doesn't define
|
| } |
| const DEFAULT_METRIC = 'analysis'; |
| @@ -103,8 +103,8 @@ class Metric { |
| class SubscriptionTimingTest extends AbstractTimingTest { |
| List<Metric> _metrics; |
| - List<Metric> get metrics => |
| - _metrics ??= metricNames.map((name) => getMetric(name)).toList(); |
| + List<Metric> get metrics => _metrics ??= |
| + new List<Metric>.from(metricNames.map((name) => getMetric(name))); |
|
Jennifer Messerly
2016/09/15 21:00:33
any idea what happened here? it doesn't look like
Brian Wilkerson
2016/09/15 21:37:26
Nope. I tried to reproduce the error and couldn't,
|
| Metric getMetric(String name) { |
| switch (name) { |