Skip to content

Commit

Permalink
dev: ignore "delay" coverage in tests (+4 lines coverage)
Browse files Browse the repository at this point in the history
  • Loading branch information
senyai committed Dec 1, 2024
1 parent 954867f commit e797eea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/test/suite/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ export async function fossilOpenForce(
if (/check-ins:\s+1\s*$/.test(res.stdout)) {
break;
}
/* c8 ignore next 2 */
await delay((i + 1) * 111);
}
assert.match(res!.stdout, /check-ins:\s+1\s*$/);
Expand Down
1 change: 1 addition & 0 deletions src/test/suite/renameSuite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export function RenameSuite(this: Suite): void {
if (sim.callCount != 0) {
break;
}
/* c8 ignore next 2 */
await delay(5);
}
sinon.assert.calledOnceWithExactly(
Expand Down

0 comments on commit e797eea

Please sign in to comment.