diff --git a/packages/flutter/test/flutter_test_config.dart b/packages/flutter/test/flutter_test_config.dart index 528fe18f82..fd7e43cb6d 100644 --- a/packages/flutter/test/flutter_test_config.dart +++ b/packages/flutter/test/flutter_test_config.dart @@ -27,9 +27,9 @@ Future testExecutable(FutureOr Function() testMain) { // TODO(polina-c): clean up leaks and stop ignoring them. // https://github.com/flutter/flutter/issues/137311 + // Leak tracking is off by default. To temporary enable it add `.withTrackedAll()` after `settings`. LeakTesting.settings = LeakTesting .settings - .withTrackedAll() .withIgnored( allNotGCed: true, notDisposed: {