Skip to content

Commit efe2d29

Browse files
committed
Update errorHandling.test.ts
1 parent 69e425e commit efe2d29

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/errorHandling.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ describe('Error Handling', () => {
163163
setTimeout(() => {
164164
// eslint-disable-next-line @typescript-eslint/no-var-requires
165165
const tempFilesAfter = fs.readdirSync(require('os').tmpdir()).length;
166-
expect(tempFilesAfter).toBeLessThanOrEqual(tempFilesBefore + 1); // Allow for some variance
166+
const allowedDelta = 5; // Allow a handful of transient temp files created by other processes
167+
expect(tempFilesAfter).toBeLessThanOrEqual(tempFilesBefore + allowedDelta);
167168
}, 100);
168169
});
169170
});

0 commit comments

Comments
 (0)