Skip to content

Commit 8d553e3

Browse files
authored
[google_maps_flutter_android] Fix for testToggleInfoWindow persistently flaky (#4768)
Fixes issue: flutter/flutter#131783
1 parent ef0c65e commit 8d553e3

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

packages/google_maps_flutter/google_maps_flutter_android/example/integration_test/google_maps_tests.dart

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,14 @@ void googleMapsTests() {
936936
final ExampleGoogleMapController controller =
937937
await controllerCompleter.future;
938938

939+
await tester.pumpAndSettle();
940+
941+
// TODO(mossmana): Adding this delay addresses
942+
// https://github.com/flutter/flutter/issues/131783. It may be related
943+
// to https://github.com/flutter/flutter/issues/54758 and should be
944+
// re-evaluated when that issue is fixed.
945+
await Future<void>.delayed(const Duration(seconds: 1));
946+
939947
bool iwVisibleStatus =
940948
await controller.isMarkerInfoWindowShown(marker.markerId);
941949
expect(iwVisibleStatus, false);
@@ -953,9 +961,7 @@ void googleMapsTests() {
953961
await controller.hideMarkerInfoWindow(marker.markerId);
954962
iwVisibleStatus = await controller.isMarkerInfoWindowShown(marker.markerId);
955963
expect(iwVisibleStatus, false);
956-
},
957-
// TODO(camsim99): Fix https://github.com/flutter/flutter/issues/131783.
958-
skip: true);
964+
});
959965

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

0 commit comments

Comments
 (0)