Skip to content

Commit 056e7d6

Browse files
authored
Fix order-dependent test: test the correct instance(s). (#3844)
* Fix order-dependent test: finish testing during the test. * Correct fix: test the right instance.
1 parent 06221ad commit 056e7d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build_resolvers/test/resolver_test.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,8 +746,9 @@ int? get x => 1;
746746
resolver.compilationUnitFor(AssetId.parse('a|errors.dart')),
747747
throwsA(isA<SyntaxErrorInAssetException>()),
748748
);
749-
});
749+
}, resolvers: createResolvers());
750750
});
751+
751752
test('are only reported if severe', () {
752753
return resolveSources({
753754
'a|errors.dart': '''
@@ -763,7 +764,7 @@ int? get x => 1;
763764
resolver.compilationUnitFor(AssetId.parse('a|errors.dart')),
764765
completion(isNotNull),
765766
);
766-
});
767+
}, resolvers: createResolvers());
767768
});
768769

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

0 commit comments

Comments
 (0)