From 0dea82e6848b46dedff43553a4f41348f17728c2 Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Mon, 22 Jan 2024 11:46:10 -0800 Subject: [PATCH] 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 --- packages/flutter/test/services/lifecycle_test.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/flutter/test/services/lifecycle_test.dart b/packages/flutter/test/services/lifecycle_test.dart index c275691b3c..588cfd42c1 100644 --- a/packages/flutter/test/services/lifecycle_test.dart +++ b/packages/flutter/test/services/lifecycle_test.dart @@ -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.