Skip to content

Commit

Permalink
Update leak_tracking_in_flutter.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
polina-c committed Jul 28, 2023
1 parent 624ce26 commit bbca8e9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ Future<void> tearDownTestingWithLeakTracking() async {

LeakTracking.stop();

if (leaks.total > 0) {
throw StateError('Test has memory leaks. ');
}
expect(leaks, isLeakFree);
}

/// Wrapper for [testWidgets] with memory leak tracking.
Expand Down

0 comments on commit bbca8e9

Please sign in to comment.