Skip to content

Commit

Permalink
fix test expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew committed Jan 21, 2025
1 parent 9fd42f2 commit aabc9a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/dart_services/test/analysis_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ void defineTests() {
test('Warn on deprecated web library imports', () async {
final results = await analysisServer.analyze(deprecatedWebLibrary);

expect(results.issues, hasLength(1));
// Expect one or two deprecation messages.
expect(results.issues, anyOf(hasLength(1), hasLength(2)));
final issue = results.issues.first;
expect(issue.message, contains('Deprecated core web library'));
});
Expand Down

0 comments on commit aabc9a7

Please # to comment.