Skip to content

Commit df0af2a

Browse files
committed
test(11a-2g): drop the mock seam the port assertions replaced
Self-review of the full diff: with every cleanup injection point taking platformResourceCleanupFixture(), the close-shutdown fixture no longer reaches the Android snapshot-helper mechanics entry, so its mock override, vi.mocked wrapper, and exported alias are dead; the admission fixture's reset() had no consumer and re-spelled setActive([]).
1 parent a6a90d5 commit df0af2a

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

‎src/daemon/__tests__/support/provider-device-admission-fixture.ts‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,5 @@ export function providerDeviceAdmissionFixture(runtimes: ProviderDeviceRuntime[]
2020
setActive: (next: ProviderDeviceRuntime[]) => {
2121
activeRuntimes = [...next];
2222
},
23-
reset: () => {
24-
activeRuntimes = [];
25-
},
2623
};
2724
}

‎src/daemon/session-lifecycle/internal/__tests__/session-close-shutdown.fixtures.ts‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ vi.mock('@agent-device/platform-android/mechanics', async (importOriginal) => {
3838
return {
3939
...actual,
4040
cleanupAndroidNativePerfSession: vi.fn(async () => {}),
41-
stopAndroidSnapshotHelperSessionForDevice: vi.fn(async () => {}),
4241
};
4342
});
4443
vi.mock('@agent-device/capture-kit/recording-video', () => ({
@@ -59,10 +58,7 @@ import {
5958
flushDiagnosticsToSessionFile,
6059
withDiagnosticsScope,
6160
} from '@agent-device/host-kit/diagnostics';
62-
import {
63-
cleanupAndroidNativePerfSession,
64-
stopAndroidSnapshotHelperSessionForDevice,
65-
} from '@agent-device/platform-android/mechanics';
61+
import { cleanupAndroidNativePerfSession } from '@agent-device/platform-android/mechanics';
6662
import {
6763
releaseIosRunnerOnClose,
6864
stopIosRunnerSession,
@@ -92,9 +88,6 @@ const mockRunCmd = vi.mocked(runCmd);
9288
const mockDispatchCommand = vi.mocked(dispatchApplicationLifecycleEffect);
9389
const mockCleanupAppleXctracePerfCapture = vi.mocked(cleanupAppleXctracePerfCapture);
9490
const mockCleanupAndroidNativePerfSession = vi.mocked(cleanupAndroidNativePerfSession);
95-
const mockStopAndroidSnapshotHelperSessionForDevice = vi.mocked(
96-
stopAndroidSnapshotHelperSessionForDevice,
97-
);
9891
const mockStopIosRunnerSession = vi.mocked(stopIosRunnerSession);
9992
const mockReleaseRunnerOnClose = vi.mocked(releaseIosRunnerOnClose);
10093

@@ -263,7 +256,6 @@ export const sessionCloseShutdownFixture = Object.freeze({
263256
mockInspectDeviceRuntimeFacts,
264257
mockShutdownTargetRuntime,
265258
mockRunCmd,
266-
mockStopAndroidSnapshotHelperSessionForDevice,
267259
mockReleaseRunnerOnClose,
268260
mockStopIosRunnerSession,
269261
narrowDeviceBinding,

0 commit comments

Comments
 (0)