Skip to content

Commit

Permalink
[google_maps_flutter_android] Fix for testToggleInfoWindow persistent…
Browse files Browse the repository at this point in the history
…ly flaky (flutter#4768)

Fixes issue: flutter/flutter#131783
  • Loading branch information
mossmana authored Sep 11, 2023
1 parent ef0c65e commit 8d553e3
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,14 @@ void googleMapsTests() {
final ExampleGoogleMapController controller =
await controllerCompleter.future;

await tester.pumpAndSettle();

// TODO(mossmana): Adding this delay addresses
// https://github.com/flutter/flutter/issues/131783. It may be related
// to https://github.com/flutter/flutter/issues/54758 and should be
// re-evaluated when that issue is fixed.
await Future<void>.delayed(const Duration(seconds: 1));

bool iwVisibleStatus =
await controller.isMarkerInfoWindowShown(marker.markerId);
expect(iwVisibleStatus, false);
Expand All @@ -953,9 +961,7 @@ void googleMapsTests() {
await controller.hideMarkerInfoWindow(marker.markerId);
iwVisibleStatus = await controller.isMarkerInfoWindowShown(marker.markerId);
expect(iwVisibleStatus, false);
},
// TODO(camsim99): Fix https://github.com/flutter/flutter/issues/131783.
skip: true);
});

testWidgets('fromAssetImage', (WidgetTester tester) async {
const double pixelRatio = 2;
Expand Down

0 comments on commit 8d553e3

Please sign in to comment.