Skip to content

Commit 0486b9f

Browse files
fix: use correct 'already bootstrapped' error string in retry test
The test was using 'Bootstrap failed: 5: Input/output error' which isAlreadyBootstrapped() explicitly does not match (it only matches 'already loaded' or 'already bootstrapped'). This meant the retry- after-bootout code path was never triggered, and the function threw on the first bootstrap attempt instead of retrying.
1 parent 7f35c5f commit 0486b9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/daemon/launchd.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ describe("launchd install", () => {
479479
});
480480

481481
it("retries bootstrap after bootout when service is already registered", async () => {
482-
state.bootstrapError = "Bootstrap failed: 5: Input/output error";
482+
state.bootstrapError = "Service is already bootstrapped";
483483
state.bootstrapFailuresRemaining = 1; // first bootstrap fails, retry succeeds
484484
const env = createDefaultLaunchdEnv();
485485
const stdout = new PassThrough();

0 commit comments

Comments
 (0)