| Index: pkg/analysis_server/test/services/correction/fix_test.dart
|
| diff --git a/pkg/analysis_server/test/services/correction/fix_test.dart b/pkg/analysis_server/test/services/correction/fix_test.dart
|
| index e6d1604f4205fd7f261dade2ce6135d4bb54445f..02375e68aef1a07800b33c00a4d8e79763256e1f 100644
|
| --- a/pkg/analysis_server/test/services/correction/fix_test.dart
|
| +++ b/pkg/analysis_server/test/services/correction/fix_test.dart
|
| @@ -2304,7 +2304,9 @@ main() {
|
| AnalysisError _findErrorToFix() {
|
| List<AnalysisError> errors = context.computeErrors(testSource);
|
| errors.removeWhere((error) {
|
| - return error.errorCode == HintCode.UNUSED_LOCAL_VARIABLE;
|
| + return error.errorCode == HintCode.UNUSED_ELEMENT ||
|
| + error.errorCode == HintCode.UNUSED_FIELD ||
|
| + error.errorCode == HintCode.UNUSED_LOCAL_VARIABLE;
|
| });
|
| if (checkHasSingleError) {
|
| expect(errors, hasLength(1));
|
|
|