mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-04 21:21:27 +01:00
test(ci): avoid retaining a fake reporter exit grace timer
This commit is contained in:
1 parent
9295aec968
commit
f0ab47ab07
1 file changed
+1
-1
@@ -73,7 +73,7 @@ test("finished files and hooks count as progress", () => {
|
||||
test("a file that never finishes loading is named from the moment it is queued", () => {
|
||||
let now = 0;
|
||||
const lines = [];
|
||||
const reporter = new StalledFileReporter({ limitMs: 1000, now: () => now, write: line => lines.push(line), exit: () => {}, root: "/repo" });
|
||||
const reporter = new StalledFileReporter({ limitMs: 1000, now: () => now, write: line => lines.push(line), exit: () => {}, root: "/repo", graceMs: 0 });
|
||||
reporter.onTestModuleQueued({ moduleId: "/repo/server/src/top-level-await.test.ts" });
|
||||
now = 1000; reporter.check();
|
||||
assert.match(lines[0] ?? "", /^::error file=server\/src\/top-level-await\.test\.ts,.*while in: loading the file\./);
|
||||
|
||||
Reference in new issue
Block a user