Skip to content

Commit e72c8e1

Browse files
committed
test: normalize an unobserved force-retirement daemon
1 parent 7f0775c commit e72c8e1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎test/integration/smoke-daemon-clean.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ test('clean daemon script stops a live daemon before removing metadata', async (
8080
// leave only classified artifacts in its state dir.
8181
await assertNoDaemonLeaks({ stateDir, daemonPids: [info.pid], phase: 'after-shutdown' });
8282
} finally {
83-
await cleanupDaemonTestState(stateDir, info);
83+
await cleanupDaemonTestState(stateDir, info ?? null);
8484
}
8585
});
8686

@@ -107,7 +107,7 @@ test('forced retirement waits for a real daemon and reclaims its abandoned regis
107107
assert.equal(fs.existsSync(paths.infoPath), false);
108108
assert.equal(fs.existsSync(paths.lockPath), false);
109109
} finally {
110-
await cleanupDaemonTestState(stateDir, info);
110+
await cleanupDaemonTestState(stateDir, info ?? null);
111111
}
112112
});
113113

0 commit comments

Comments
 (0)