reset state of CustomSemanticsAction before running tests (#137697)
Fixes https://github.com/flutter/flutter/issues/137696 This will get the tree green again. The problem is that `CustomSemanticsAction` has static state in it, and todays test seed order makes things unhappy.
This commit is contained in:
@@ -251,6 +251,7 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
|
||||
if (registerTestTextInput) {
|
||||
_testTextInput.register();
|
||||
}
|
||||
CustomSemanticsAction.resetForTests(); // ignore: invalid_use_of_visible_for_testing_member
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user