Skip to content

Commit 7e09a25

Browse files
authored
Update test expectation.
Analyzer has changed an info to a warning. Test was looking for "info -" in output. The info category is quickly going away (q.v., dart-lang/sdk#50796), so the test should probably be checking for warnings now.
1 parent f0613dc commit 7e09a25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/validator/analyze_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ void main() {
116116
);
117117
});
118118

119-
test('should warn if package contains infos in test folder', () async {
119+
test('should warn if package contains warnings in test folder', () async {
120120
await d.dir(appPath, [
121121
d.validPubspec(),
122122
d.file('LICENSE', 'Eh, do what you want.'),
@@ -136,7 +136,7 @@ void main() {
136136
error: allOf([
137137
contains('`dart analyze` found the following issue(s):'),
138138
contains('Analyzing lib, test, pubspec.yaml...'),
139-
contains('info -'),
139+
contains('warning -'),
140140
contains("The value of the local variable 'a' isn't used"),
141141
contains('Package has 1 warning.')
142142
]),

0 commit comments

Comments
 (0)