Skip to content

Commit

Permalink
Fix order-dependent test: test the correct instance(s). (#3844)
Browse files Browse the repository at this point in the history
* Fix order-dependent test: finish testing during the test.

* Correct fix: test the right instance.
  • Loading branch information
davidmorgan authored Feb 11, 2025
1 parent 06221ad commit 056e7d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build_resolvers/test/resolver_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -746,8 +746,9 @@ int? get x => 1;
resolver.compilationUnitFor(AssetId.parse('a|errors.dart')),
throwsA(isA<SyntaxErrorInAssetException>()),
);
});
}, resolvers: createResolvers());
});

test('are only reported if severe', () {
return resolveSources({
'a|errors.dart': '''
Expand All @@ -763,7 +764,7 @@ int? get x => 1;
resolver.compilationUnitFor(AssetId.parse('a|errors.dart')),
completion(isNotNull),
);
});
}, resolvers: createResolvers());
});

test('are reported for part files with errors', () {
Expand Down

0 comments on commit 056e7d6

Please sign in to comment.