From 1ca88730a0c13968e7923f1562e44792dae18ea2 Mon Sep 17 00:00:00 2001 From: godofredoc Date: Mon, 11 Mar 2024 18:31:25 -0700 Subject: [PATCH] Update integration tests regexes. (#144847) Some tests are assuming the flutter sdk code is being checked out to flutter and checking the code to a different repository makes them fail. Bug: https://github.com/flutter/flutter/issues/144487 --- .../test/integration.shard/flutter_build_apk_verbose_test.dart | 2 +- .../test/integration.shard/overall_experience_test.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter_tools/test/integration.shard/flutter_build_apk_verbose_test.dart b/packages/flutter_tools/test/integration.shard/flutter_build_apk_verbose_test.dart index cff5e463b09..4a5c253cc6a 100644 --- a/packages/flutter_tools/test/integration.shard/flutter_build_apk_verbose_test.dart +++ b/packages/flutter_tools/test/integration.shard/flutter_build_apk_verbose_test.dart @@ -49,7 +49,7 @@ void main() { '-v', ], workingDirectory: exampleAppDir.path); expect( - result.stdout, contains(RegExp(r'executing:\s+\S+gen_snapshot\s+'))); + result.stdout, contains(RegExp(r'executing:\s+.+gen_snapshot\s+'))); }, ); } diff --git a/packages/flutter_tools/test/integration.shard/overall_experience_test.dart b/packages/flutter_tools/test/integration.shard/overall_experience_test.dart index eddf735f973..4741c07fe74 100644 --- a/packages/flutter_tools/test/integration.shard/overall_experience_test.dart +++ b/packages/flutter_tools/test/integration.shard/overall_experience_test.dart @@ -251,7 +251,7 @@ void main() { 'A RenderFlex overflowed by 69200 pixels on the right.', '', 'The relevant error-causing widget was:', - matches(RegExp(r'^ Row .+flutter/dev/integration_tests/ui/lib/overflow\.dart:32:18$')), + matches(RegExp(r'^ Row.+/dev/integration_tests/ui/lib/overflow\.dart:32:18$')), '', 'To inspect this widget in Flutter DevTools, visit:', startsWith('http'),