From 504e66920005937b6ffbc3ccd6b59d594b0e98c4 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Mon, 28 Feb 2022 10:16:40 -0800 Subject: [PATCH] Update an analyzer test to support changes to error message text in the latest Dart SDK (#99281) See https://github.com/flutter/flutter/issues/99248 --- dev/bots/test/analyze_sample_code_test.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/bots/test/analyze_sample_code_test.dart b/dev/bots/test/analyze_sample_code_test.dart index 4f7b32a33ac..ac435ab14b8 100644 --- a/dev/bots/test/analyze_sample_code_test.dart +++ b/dev/bots/test/analyze_sample_code_test.dart @@ -22,9 +22,9 @@ void main() { final List stdoutLines = process.stdout.toString().split('\n'); final List stderrLines = process.stderr.toString().split('\n'); expect(process.exitCode, isNot(equals(0))); - expect(stderrLines, containsAll([ + expect(stderrLines, containsAll([ 'In sample starting at dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:125: child: Text(title),', - ">>> error: The final variable 'title' can't be read because it is potentially unassigned at this point (read_potentially_unassigned_final)", + matches(RegExp(r">>> error: The final variable 'title' can't be read because (it is|it's) potentially unassigned at this point \(read_potentially_unassigned_final\)")), 'dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:30:9: new Opacity(', '>>> info: Unnecessary new keyword (unnecessary_new)', 'dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:62:9: new Opacity(',