Skip to content

Commit 3817dde

Browse files
committed
test(repair): stabilize git timeout proof
1 parent 0b0f65a commit 3817dde

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎test/repair/git-repo-utils.test.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ test("git helper bounds execution and terminates the timed-out process", async (
2222
() =>
2323
runGitCommand(["stall", marker], {
2424
targetDir: fixture.root,
25-
timeoutMs: 25,
25+
timeoutMs: 250,
2626
env: fixture.env,
2727
}),
28-
/command timed out after 25ms: git stall.*waiting for timeout/s,
28+
/command timed out after 250ms: git stall.*waiting for timeout/s,
2929
);
30-
await delay(250);
30+
await delay(750);
3131
assert.equal(fs.existsSync(marker), false);
3232
});
3333

@@ -176,7 +176,7 @@ function fakeGitFixture() {
176176
'if (mode === "signal") process.kill(process.pid, "SIGTERM");',
177177
'if (mode === "stall") {',
178178
' process.stderr.write("waiting for timeout\\n");',
179-
' setTimeout(() => fs.writeFileSync(marker, "late\\n"), 150);',
179+
' setTimeout(() => fs.writeFileSync(marker, "late\\n"), 600);',
180180
"}",
181181
"",
182182
].join("\n"),

0 commit comments

Comments
 (0)