Remove unneeded expectation in test (#141822)
## Description This removes an unneeded expectation in the test for the AppLifecycleListener. It's unneeded because the test immediately resets the state anyhow. I'm removing it because the web implementation sets the value when initializing, so it's never initially null there. ## Related PR - https://github.com/flutter/engine/pull/44720#issuecomment-1898482363
This commit is contained in:
@@ -9,7 +9,6 @@ import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('initialLifecycleState is used to init state paused', (WidgetTester tester) async {
|
||||
expect(ServicesBinding.instance.lifecycleState, isNull);
|
||||
final TestWidgetsFlutterBinding binding = tester.binding;
|
||||
binding.resetLifecycleState();
|
||||
// Use paused as the initial state.
|
||||
|
||||
Reference in New Issue
Block a user