Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cirospaciari committed Apr 15, 2024
1 parent 1376b4d commit 4bb8c67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/js/bun/http/serve-body-leak.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ it("#10265 should not leak memory when ignoring the body", async () => {

// peak memory is too high
expect(report.peak_memory > report.start_memory * 2).toBe(false);
// acceptable memory leak 2mbish
// acceptable memory leak
expect(report.leak).toBeLessThanOrEqual(ACCEPTABLE_MEMORY_LEAK);
});

Expand All @@ -107,7 +107,7 @@ it("should not leak memory when buffering the body", async () => {
console.log(report);
// peak memory is too high
expect(report.peak_memory > report.start_memory * 2).toBe(false);
// acceptable memory leak 2mbish
// acceptable memory leak
expect(report.leak).toBeLessThanOrEqual(ACCEPTABLE_MEMORY_LEAK);
});

Expand All @@ -117,7 +117,7 @@ it("should not leak memory when streaming the body", async () => {

// peak memory is too high
expect(report.peak_memory > report.start_memory * 2).toBe(false);
// acceptable memory leak 2mbish
// acceptable memory leak
expect(report.leak).toBeLessThanOrEqual(ACCEPTABLE_MEMORY_LEAK);
});

Expand All @@ -127,6 +127,6 @@ it("should not leak memory when streaming the body incompletely", async () => {

// peak memory is too high
expect(report.peak_memory > report.start_memory * 2).toBe(false);
// acceptable memory leak 2mbish
// acceptable memory leak
expect(report.leak).toBeLessThanOrEqual(ACCEPTABLE_MEMORY_LEAK);
});

0 comments on commit 4bb8c67

Please sign in to comment.