mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
one more
This commit is contained in:
@@ -3,7 +3,8 @@ import { isASAN } from "../../../harness";
|
||||
|
||||
const perBatch = 2000;
|
||||
const repeat = 50;
|
||||
test("Printing errors does not leak", () => {
|
||||
// prettier-ignore
|
||||
test.todoIf(isASAN)("Printing errors does not leak", () => {
|
||||
function batch() {
|
||||
for (let i = 0; i < perBatch; i++) {
|
||||
Bun.inspect(new Error("leak"));
|
||||
@@ -20,5 +21,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 ? 20 : 10);
|
||||
expect(diff, `RSS grew by ${diff} MB after ${perBatch * repeat} iterations`).toBeLessThan(10);
|
||||
}, 10_000);
|
||||
|
||||
@@ -1698,8 +1698,9 @@ test/snippets/segfault-todo.test.js
|
||||
|
||||
test/js/bun/bun-object/write.spec.ts
|
||||
test/js/bun/http/http-spec.ts
|
||||
|
||||
test/js/bun/stream/direct-readable-stream.test.tsx
|
||||
test/js/node/cluster/test-worker-no-exit-http.ts
|
||||
test/js/node/util/parse_args/default-args.test.mjs
|
||||
|
||||
test/js/node/test/parallel/test-abortsignal-any.mjs
|
||||
test/js/node/test/parallel/test-arm-math-illegal-instruction.js
|
||||
|
||||
Reference in New Issue
Block a user