Reset framesEnabled to default value at the end of each test (#141844)

Reset `framesEnabled` to `true` at the end of each test as otherwise subsequent tests may fail when pumping a widget

Fixes #141835
This commit is contained in:
Aizat Azhar
2024-01-31 00:04:15 +08:00
committed by GitHub
parent e8cb029583
commit 75a2e5b493
5 changed files with 23 additions and 7 deletions

View File

@@ -1177,7 +1177,7 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
// ignore: invalid_use_of_visible_for_testing_member
RendererBinding.instance.initMouseTracker();
// ignore: invalid_use_of_visible_for_testing_member
ServicesBinding.instance.resetLifecycleState();
ServicesBinding.instance.resetInternalState();
}
}