-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
bad-testReport tests in need of updates. When closed, the tests should be considered goodReport tests in need of updates. When closed, the tests should be considered good
Description
While debugging dart-lang/sdk#54140 @mkustermann realized that some of the async tests in co19 are missing asyncStart
and asyncEnd
:
- https://github.com/dart-lang/co19/blob/master/Language/Functions/element_type_A02_t03.dart
- https://github.com/dart-lang/co19/blob/master/Language/Functions/element_type_A02_t04.dart
- https://github.com/dart-lang/co19/blob/master/Language/Functions/element_type_A02_t06.dart
When testing in the browser, without asyncStart
and asyncEnd
, the test driver is not waiting for the test to finish and declaring a success even when the test actually fails.
I quickly searched for all the files with an async main
and an asyncStart
, and when I compared the outputs I see that there are dozens of files where main
is async but the file doesn't have asyncStart
. For example:
- LanguageFeatures/Control-flow-collections/dynamic_semantics_list_A03_t02.dart
- Language/Statements/For/Asynchronous_For_in/execution_A02_t01.dart
I used ag -Q 'main() async' -c
to find tests with async main
and ag -Q 'asyncStart' -c
to find the tests with asyncStart
. (I think it might make sense to search for await
instead of main() async
).
Metadata
Metadata
Assignees
Labels
bad-testReport tests in need of updates. When closed, the tests should be considered goodReport tests in need of updates. When closed, the tests should be considered good