MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / runAcquireAttempt

Function runAcquireAttempt

apps/local/src/db/data-dir-ownership.test.ts:164–169  ·  view source on GitHub ↗
(dataDir: string)

Source from the content-addressed store, hash-verified

162};
163
164const runAcquireAttempt = async (dataDir: string): Promise<ChildCloseResult> => {
165 const attempt = spawnScript(attemptScript, { EXECUTOR_TEST_DATA_DIR: dataDir });
166 const result = await waitForChildClose(attempt, 5_000);
167 disposeChildOutput(attempt);
168 return result;
169};
170
171describe("data-dir ownership", () => {
172 it("blocks a second process and releases ownership when the holder is SIGKILLed", async () => {

Callers 1

Calls 3

spawnScriptFunction · 0.85
disposeChildOutputFunction · 0.85
waitForChildCloseFunction · 0.70

Tested by

no test coverage detected