mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
inspect-error-leak.test.js: add a slightly higher asan margin
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user