mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
Clean up after AppLifecycleTests (#12273)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user