Skip to content

Commit 1159a5a

Browse files
committed
fix(replay): clean lifecycle and harness teardown
1 parent fb3a7c4 commit 1159a5a

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

packages/tugboat/lib/src/controller.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,6 +1947,7 @@ class TugboatReplayController extends ChangeNotifier {
19471947
break;
19481948
case AppLifecycleState.resumed:
19491949
_captureLifecycleActive = true;
1950+
break;
19501951
case AppLifecycleState.inactive:
19511952
break;
19521953
}

packages/tugboat/test/replay_coherence_characterization_test.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,6 @@ void main() {
357357
) async {
358358
final harness = ReplayCoherenceHarness();
359359
await harness.setUp();
360-
addTearDown(harness.dispose);
361360
await _mountScrollableHarness(tester, harness);
362361

363362
final originFrame = harness.seedRouteState(
@@ -386,7 +385,6 @@ void main() {
386385
) async {
387386
final harness = ReplayCoherenceHarness();
388387
await harness.setUp();
389-
addTearDown(harness.dispose);
390388
await _mountScrollableHarness(tester, harness);
391389

392390
final originFrame = harness.seedRouteState(

0 commit comments

Comments
 (0)