GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: relax test-memory-usage arrayBuffers check · nodejs/node@d691ccc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-memory-usage.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-memory-usage.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-memory-usage.js
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ if (r.arrayBuffers > 0) {
4444
const after = process.memoryUsage();
4545
assert.ok(after.external - r.external >= size,
4646
`${after.external} - ${r.external} >= ${size}`);
47-
assert.strictEqual(after.arrayBuffers - r.arrayBuffers, size,
48-
`${after.arrayBuffers} - ${r.arrayBuffers} === ${size}`);
47+
// `arrayBuffers` is process-wide, so unrelated backing stores may be freed
48+
// between the two snapshots. Check that the live ArrayBuffer is included.
49+
assert.ok(after.arrayBuffers >= size,
50+
`${after.arrayBuffers} >= ${size}`);
4951
}

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.