From 479e27c9f196d6eef839623d9af0f9c7dcdd2dbc Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Fri, 21 Feb 2020 12:05:30 -0800 Subject: [PATCH] Update stack trace test goldens to handle engine builds with lazy async stacks (#51216) The next engine roll will introduce --lazy-async-stacks, which affects the contents of stack traces. This updates test expectations to match both the old and new stack trace formats. --- .../flutter_test/exception_handling_expectation.txt | 6 +++--- .../flutter_test/test_async_utils_unguarded_expectation.txt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dev/automated_tests/flutter_test/exception_handling_expectation.txt b/dev/automated_tests/flutter_test/exception_handling_expectation.txt index ef370115b9..2a5f54e746 100644 --- a/dev/automated_tests/flutter_test/exception_handling_expectation.txt +++ b/dev/automated_tests/flutter_test/exception_handling_expectation.txt @@ -9,7 +9,7 @@ When the exception was thrown, this was the stack: #(1|2) .+ \(package:flutter_test[/\\]src[/\\]widget_tester\.dart:[0-9]+:[0-9]+\) <> -^\(elided [0-9]+ frames.+$ +^\(elided ([0-9]+|one) frame.+$ <> The test description was: Exception handling in test harness - string @@ -29,7 +29,7 @@ When the exception was thrown, this was the stack: #(1|2) .+ \(package:flutter_test[/\\]src[/\\]widget_tester\.dart:[0-9]+:[0-9]+\) <> -^\(elided [0-9]+ .+$ +^\(elided ([0-9]+|one) .+$ <> The test description was: Exception handling in test harness - FlutterError @@ -52,7 +52,7 @@ When the exception was thrown, this was the stack: <> #[0-9]+ +.+ \(package:flutter_test[/\\]src[/\\]widget_tester\.dart:[0-9]+:[0-9]+\) <> -^\(elided [0-9]+ .+$ +^\(elided ([0-9]+|one) .+$ <> The test description was: Exception handling in test harness - uncaught Future error diff --git a/dev/automated_tests/flutter_test/test_async_utils_unguarded_expectation.txt b/dev/automated_tests/flutter_test/test_async_utils_unguarded_expectation.txt index c5b94b9bbe..04e7904a35 100644 --- a/dev/automated_tests/flutter_test/test_async_utils_unguarded_expectation.txt +++ b/dev/automated_tests/flutter_test/test_async_utils_unguarded_expectation.txt @@ -15,11 +15,11 @@ statement in front of the call to the first\. When the first method was called, this was the stack: <> -(elided [0-9]+ frames from .+) +(elided ([0-9]+|one) frames? from .+) When the exception was thrown, this was the stack: <> -(elided [0-9]+ frames from .+) +(elided ([0-9]+|one) frames? from .+) The test description was: TestAsyncUtils - handling unguarded async helper functions