Skip to content

Commit

Permalink
Be slightly more lenient about the assertion, as it differs on differ…
Browse files Browse the repository at this point in the history
…ent backends. (flutter#51877)

We shouldn't assume the exact format of the assertion string here, as the exact output is slightly different on dart2js vs ddc vs dart2wasm. They should all contain the message text, however.
  • Loading branch information
eyebrowsoffire authored Apr 3, 2024
1 parent a7e0517 commit aec9c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/web_ui/test/canvaskit/embedded_views_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ void testMain() {
} on AssertionError catch (error) {
expect(
error.toString(),
'Assertion failed: "Cannot render platform views: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15. These views have not been created, or they have been deleted."',
contains('Cannot render platform views: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15. These views have not been created, or they have been deleted.'),
);
}

Expand Down

0 comments on commit aec9c88

Please sign in to comment.