Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ void main() {
});

testWidgets('initialized with latest renderer', (WidgetTester _) async {
expect(initializedRenderer, AndroidMapRenderer.latest);
// There is no guarantee that the server will return the latest renderer
// even when requested, so there's no way to deterministically test that.
// Instead, just test that the request succeeded and returned a valid
// value.
expect(
initializedRenderer == AndroidMapRenderer.latest ||
initializedRenderer == AndroidMapRenderer.legacy,
true);
});

testWidgets('throws PlatformException on multiple renderer initializations',
Expand Down