Skip to content

Commit

Permalink
test: Don't ignore leaks created by test helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinVignal committed Aug 30, 2024
1 parent 9efe134 commit f4912f7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions packages/go_router/test/extra_codec_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ void main() {
expect(find.text(initialString), findsOneWidget);

await tester.restartAndRestore();
addTearDown(tester.binding.restorationManager.dispose);

await tester.pumpAndSettle();
expect(find.text(initialString), findsOneWidget);
Expand Down
2 changes: 0 additions & 2 deletions packages/go_router/test/flutter_test_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ import 'package:leak_tracker_flutter_testing/leak_tracker_flutter_testing.dart';

FutureOr<void> testExecutable(FutureOr<void> Function() testMain) {
LeakTesting.enable();
LeakTesting.settings =
LeakTesting.settings.withIgnored(createdByTestHelpers: true);
return testMain();
}

0 comments on commit f4912f7

Please sign in to comment.