inspect-error-leak.test.js: add a slightly higher asan margin

This commit is contained in:
Meghan Denny
2025-06-19 15:02:38 -07:00
committed by GitHub
parent d4ccba67f2
commit b62f70c23a

View File

@@ -20,5 +20,5 @@ test("Printing errors does not leak", () => {
const after = Math.floor(process.memoryUsage.rss() / 1024);
const diff = ((after - baseline) / 1024) | 0;
console.log(`RSS increased by ${diff} MB`);
expect(diff, `RSS grew by ${diff} MB after ${perBatch * repeat} iterations`).toBeLessThan(isASAN ? 16 : 10);
expect(diff, `RSS grew by ${diff} MB after ${perBatch * repeat} iterations`).toBeLessThan(isASAN ? 20 : 10);
}, 10_000);