Unverified Commit 96c322d6 authored by Polina Cherkasova's avatar Polina Cherkasova Committed by GitHub

Opt out test from leak tracking. (#142417)

parent 6a6874ec
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
import 'package:leak_tracker_flutter_testing/leak_tracker_flutter_testing.dart';
void main() { void main() {
testWidgets('runApp uses deprecated pipelineOwner and renderView', (WidgetTester tester) async { testWidgets('runApp uses deprecated pipelineOwner and renderView', (WidgetTester tester) async {
...@@ -37,7 +38,9 @@ void main() { ...@@ -37,7 +38,9 @@ void main() {
expect(tester.element(find.byType(ColoredBox)).owner, equals(tester.binding.buildOwner)); expect(tester.element(find.byType(ColoredBox)).owner, equals(tester.binding.buildOwner));
}); });
testWidgets('runApp throws if given a View', (WidgetTester tester) async { testWidgets('runApp throws if given a View',
experimentalLeakTesting: LeakTesting.settings.withIgnoredAll(), // The test leaks by design because of exception.
(WidgetTester tester) async {
runApp( runApp(
View( View(
view: FakeFlutterView(tester.view), view: FakeFlutterView(tester.view),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment