Skip to content

Commit

Permalink
test: Fix memory leaks in new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinVignal committed Oct 16, 2024
1 parent b7fc475 commit fc9fd22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/go_router/test/information_provider_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ void main() {
initialLocation: initialRoute,
initialExtra: null,
routerNeglect: true);
addTearDown(provider.dispose);
provider.addListener(expectAsync0(() {}));
provider.go(newRoute);
provider.routerReportsNewRouteInformation(
Expand All @@ -98,6 +99,7 @@ void main() {
late final GoRouteInformationProvider provider =
GoRouteInformationProvider(
initialLocation: initialRoute, initialExtra: null);
addTearDown(provider.dispose);
provider.addListener(expectAsync0(() {}));
provider.go(newRoute);
provider.routerReportsNewRouteInformation(
Expand Down

0 comments on commit fc9fd22

Please sign in to comment.