





















@@ -204,24 +204,15 @@ describeLaunchdIntegration("launchd integration", () => {
204204205205it("restarts launchd service and keeps it running with a new pid", async () => {
206206const launchEnv = launchEnvOrThrow(env);
207-try {
208-await initializeLaunchdRuntime(launchEnv, stdout);
209-} catch {
210-// Best-effort integration check only; skip when launchctl is unstable in CI.
211-return;
212-}
207+await initializeLaunchdRuntime(launchEnv, stdout);
213208const before = await waitForRunningRuntime({ env: launchEnv });
214209await restartLaunchAgent({ env: launchEnv, stdout });
215210await expectRuntimePidReplaced({ env: launchEnv, previousPid: before.pid });
216211}, 60_000);
217212218213it("keeps LaunchAgent supervision after a raw SIGTERM", async () => {
219214const launchEnv = launchEnvOrThrow(env);
220-try {
221-await initializeLaunchdRuntime(launchEnv, stdout);
222-} catch {
223-return;
224-}
215+await initializeLaunchdRuntime(launchEnv, stdout);
225216226217const before = await waitForRunningRuntime({ env: launchEnv });
227218process.kill(before.pid, "SIGTERM");
@@ -230,11 +221,7 @@ describeLaunchdIntegration("launchd integration", () => {
230221231222it("stops persistently without reinstall and starts later", async () => {
232223const launchEnv = launchEnvOrThrow(env);
233-try {
234-await initializeLaunchdRuntime(launchEnv, stdout);
235-} catch {
236-return;
237-}
224+await initializeLaunchdRuntime(launchEnv, stdout);
238225239226const before = await waitForRunningRuntime({ env: launchEnv });
240227await stopLaunchAgent({ env: launchEnv, stdout });
@@ -247,11 +234,7 @@ describeLaunchdIntegration("launchd integration", () => {
247234248235it("stops persistently without reinstall and restarts later", async () => {
249236const launchEnv = launchEnvOrThrow(env);
250-try {
251-await initializeLaunchdRuntime(launchEnv, stdout);
252-} catch {
253-return;
254-}
237+await initializeLaunchdRuntime(launchEnv, stdout);
255238256239const before = await waitForRunningRuntime({ env: launchEnv });
257240await stopLaunchAgent({ env: launchEnv, stdout });
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。