(dataDir: string)
| 162 | }; |
| 163 | |
| 164 | const 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 | |
| 171 | describe("data-dir ownership", () => { |
| 172 | it("blocks a second process and releases ownership when the holder is SIGKILLed", async () => { |
no test coverage detected