Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@dnfield
Copy link
Contributor

@dnfield dnfield commented Feb 23, 2024

Fixes flutter/flutter#144046

When we use the same FlutterLoader from the injector, the initialization method knows it doesn't have to do as much work - using separate Flutter loaders (in this case for every test that derives from TestActivity, which is basically all of them) causes spurious warning messages to be printed for every test.

Copy link
Contributor

@matanlurey matanlurey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

What do you think of making these warnings a failure case for the test going forward?

@dnfield
Copy link
Contributor Author

dnfield commented Feb 23, 2024

Thank you!

What do you think of making these warnings a failure case for the test going forward?

I think that's fine, but I could also imagine a case where some test gets written to explicitly test that actually calling it twice with different instances doesn't crash. But if we go there we should probably just make the method better at detecting re-entrant calls from multiple instances instead of just one instance.

@dnfield dnfield added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 23, 2024
@auto-submit auto-submit bot merged commit 65a6d6e into main Feb 23, 2024
@auto-submit auto-submit bot deleted the dnfield-patch-1 branch February 23, 2024 23:46
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 24, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Feb 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App

Projects

None yet

Development

Successfully merging this pull request may close these issues.

scenario_app repeatedly prints out warnings that FlutterJNI.init and others are called more than once

3 participants