@@ -204,24 +204,15 @@ describeLaunchdIntegration("launchd integration", () => {
204204
205205 it ( "restarts launchd service and keeps it running with a new pid" , async ( ) => {
206206 const 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 ) ;
213208 const before = await waitForRunningRuntime ( { env : launchEnv } ) ;
214209 await restartLaunchAgent ( { env : launchEnv , stdout } ) ;
215210 await expectRuntimePidReplaced ( { env : launchEnv , previousPid : before . pid } ) ;
216211 } , 60_000 ) ;
217212
218213 it ( "keeps LaunchAgent supervision after a raw SIGTERM" , async ( ) => {
219214 const launchEnv = launchEnvOrThrow ( env ) ;
220- try {
221- await initializeLaunchdRuntime ( launchEnv , stdout ) ;
222- } catch {
223- return ;
224- }
215+ await initializeLaunchdRuntime ( launchEnv , stdout ) ;
225216
226217 const before = await waitForRunningRuntime ( { env : launchEnv } ) ;
227218 process . kill ( before . pid , "SIGTERM" ) ;
@@ -230,11 +221,7 @@ describeLaunchdIntegration("launchd integration", () => {
230221
231222 it ( "stops persistently without reinstall and starts later" , async ( ) => {
232223 const launchEnv = launchEnvOrThrow ( env ) ;
233- try {
234- await initializeLaunchdRuntime ( launchEnv , stdout ) ;
235- } catch {
236- return ;
237- }
224+ await initializeLaunchdRuntime ( launchEnv , stdout ) ;
238225
239226 const before = await waitForRunningRuntime ( { env : launchEnv } ) ;
240227 await stopLaunchAgent ( { env : launchEnv , stdout } ) ;
@@ -247,11 +234,7 @@ describeLaunchdIntegration("launchd integration", () => {
247234
248235 it ( "stops persistently without reinstall and restarts later" , async ( ) => {
249236 const launchEnv = launchEnvOrThrow ( env ) ;
250- try {
251- await initializeLaunchdRuntime ( launchEnv , stdout ) ;
252- } catch {
253- return ;
254- }
237+ await initializeLaunchdRuntime ( launchEnv , stdout ) ;
255238
256239 const before = await waitForRunningRuntime ( { env : launchEnv } ) ;
257240 await stopLaunchAgent ( { env : launchEnv , stdout } ) ;
0 commit comments