Skip to content

Commit ac96532

Browse files
committed
test: reset idle-stop scheduler mock between session tests
Review finding on #1025: every other mock in the file resets in beforeEach; without it the retention assertion could pass on call history leaked from an earlier close test.
1 parent 9fd1396 commit ac96532

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/daemon/handlers/__tests__/session.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ beforeEach(() => {
179179
healthCheckMs: 3,
180180
});
181181
mockStopIosRunner.mockReset();
182+
mockScheduleIosRunnerIdleStop.mockReset();
182183
mockStopIosRunner.mockResolvedValue(undefined);
183184
mockDismissMacOsAlert.mockReset();
184185
mockDismissMacOsAlert.mockResolvedValue({} as any);

0 commit comments

Comments
 (0)