diff --git a/dev/benchmarks/complex_layout/lib/src/app.dart b/dev/benchmarks/complex_layout/lib/src/app.dart index 1a544ed6b7..21c03d6d80 100644 --- a/dev/benchmarks/complex_layout/lib/src/app.dart +++ b/dev/benchmarks/complex_layout/lib/src/app.dart @@ -104,7 +104,10 @@ class ComplexLayoutState extends State { }, ); if (widget.badScroll) { - body = ListView(children: [body]); + body = ListView( + key: const Key('complex-scroll-bad'), + children: [body], + ); } return Scaffold( diff --git a/dev/benchmarks/complex_layout/test_driver/scroll_perf_bad_test.dart b/dev/benchmarks/complex_layout/test_driver/scroll_perf_bad_test.dart index 106b32f41c..6778b55af7 100644 --- a/dev/benchmarks/complex_layout/test_driver/scroll_perf_bad_test.dart +++ b/dev/benchmarks/complex_layout/test_driver/scroll_perf_bad_test.dart @@ -53,7 +53,7 @@ void main() { } test('complex_layout_scroll_perf', () async { - await testScrollPerf('complex-scroll', 'complex_layout_scroll_perf'); + await testScrollPerf('complex-scroll-bad', 'complex_layout_scroll_perf'); }, timeout: Timeout.none); }); }