未验证 提交 e12decfd 编写于 作者: X xster 提交者: GitHub

Clean up after AppLifecycleTests (#12273)

上级 d026bf6c
......@@ -140,5 +140,13 @@
XCTAssertEqualObjects(
lifecycleEvents, expectedStates,
@"AppLifecycleState transitions while presenting a second time not as expected");
// Dismantle.
[engine.lifecycleChannel setMessageHandler:nil];
[flutterVC dismissViewControllerAnimated:NO completion:nil];
flutterVC = nil;
[engine setViewController:nil];
[rootVC dismissViewControllerAnimated:NO completion:nil];
rootVC = nil;
}
@end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册