Skip to content

flutter_tester is not terminated if SIGINT is sent during startup #20949

@DanTup

Description

@DanTup

I have a test in Dart Code that starts building a Flutter project and terminates it during build to ensure we clean up and close the debug session. I noticed it's leaking flutter_tester instances a lot.

Seems like if the SIGINT is sent at the right time, the flutter_tester process is not cleaned up. If you wait until the build finish, it does work correctly.

Possibly the issue is in stopApps() in resident_runner.dart; it seems to enumerate flutter views, but if the app hasn't finished loading yet, then probably this isn't going to clean it up.

Metadata

Metadata

Assignees

Labels

P3Issues that are less important to the Flutter projecta: tests"flutter test", flutter_test, or one of our teststeam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions