Skip to content

Commit 7eedaf6

Browse files
thymikeeclaude
andcommitted
test: run the Limrun public HTTP test on the runtime shutdown contract
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
1 parent 5b26ca3 commit 7eedaf6

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎src/daemon-runtime-limrun-public-http.test.ts‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ const limrunIo = vi.hoisted(() => ({
1919
const rootPorts = vi.hoisted(() => {
2020
const applicationLifecycle = {
2121
recoverStartupResources: vi.fn(async () => {}),
22-
detachForDaemonShutdown: vi.fn(async () => {}),
23-
finalizeDaemonShutdown: vi.fn(async () => {}),
22+
detachForDaemonShutdown: vi.fn(async () => []),
23+
finalizeDaemonShutdown: vi.fn(async () => []),
2424
};
2525
return {
2626
providerComposition: vi.fn(async () => ({ runtimes: [] as unknown[], platformModules: [] })),
@@ -93,8 +93,6 @@ test('public HTTP rejects Limrun uploaded-app listing and allocation before prov
9393
LIM_ANDROID_INSTANCE_ADB_URL: 'https://region.limrun.example/v1/android_test/adb',
9494
},
9595
}),
96-
exit: () => {},
97-
registerProcessHandlers: false,
9896
stderr: { write: () => {} },
9997
stdout: { write: () => {} },
10098
});
@@ -149,7 +147,7 @@ test('public HTTP rejects Limrun uploaded-app listing and allocation before prov
149147
assert.equal(rootPorts.createRequestPlatformProviders.mock.calls.length, 1);
150148
assert.equal(rootPorts.applicationLifecycle.recoverStartupResources.mock.calls.length, 1);
151149
} finally {
152-
await runtime?.shutdown();
150+
await runtime?.close();
153151
await limrun.shutdown();
154152
fs.rmSync(paths.baseDir, { recursive: true, force: true });
155153
if (runtime)

0 commit comments

Comments
 (0)