Skip to content

Commit

Permalink
Clean up after AppLifecycleTests (flutter#12273)
Browse files Browse the repository at this point in the history
  • Loading branch information
xster committed Sep 13, 2019
1 parent d026bf6 commit e12decf
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -140,5 +140,13 @@ - (void)testLifecycleChannel {
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

0 comments on commit e12decf

Please sign in to comment.