From 95a5a8d7415fcd4a7898928025f826c2971ccc42 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Wed, 13 Jul 2022 09:53:40 -0700 Subject: [PATCH] Check for analyzer rule names instead of descriptions in a flutter_tools test (#107541) The descriptions can change between different versions of the analyzer. --- .../test/integration.shard/analyze_once_test.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/flutter_tools/test/integration.shard/analyze_once_test.dart b/packages/flutter_tools/test/integration.shard/analyze_once_test.dart index 3691058160..5dad4ab088 100644 --- a/packages/flutter_tools/test/integration.shard/analyze_once_test.dart +++ b/packages/flutter_tools/test/integration.shard/analyze_once_test.dart @@ -192,10 +192,10 @@ void main() { arguments: ['analyze', '--no-pub'], statusTextContains: [ 'Analyzing', - 'info $analyzerSeparator Avoid empty else statements', - 'info $analyzerSeparator Avoid empty statements', - "info $analyzerSeparator The declaration '_incrementCounter' isn't", - "warning $analyzerSeparator The parameter 'onPressed' is required", + 'avoid_empty_else', + 'empty_statements', + 'unused_element', + 'missing_required_param', ], exitMessageContains: '4 issues found.', exitCode: 1,