Skip to content

Commit

Permalink
bug: Fix tests on chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinVignal committed Sep 9, 2024
1 parent 969bd9f commit 6595059
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/go_router/test/flutter_test_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import 'dart:async';

import 'package:leak_tracker_flutter_testing/leak_tracker_flutter_testing.dart';

FutureOr<void> testExecutable(FutureOr<void> Function() testMain) {
Future<void> testExecutable(FutureOr<void> Function() testMain) async {
LeakTesting.enable();
return testMain();
LeakTracking.warnForUnsupportedPlatforms = false;
await testMain();
}

0 comments on commit 6595059

Please sign in to comment.