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: remove deadlock workaround · nodejs/node@a0077c9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-file-write-stream4.js
    • test-net-write-fully-async-buffer.js
    • test-net-write-fully-async-hex-string.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-file-write-stream4.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-file-write-stream4.js
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Flags: --expose-gc
21
'use strict';
32

43
// Test that 'close' emits once and not twice when `emitClose: true` is set.
@@ -18,8 +17,4 @@ const fileWriteStream = fs.createWriteStream(filepath, {
1817
});
1918

2019
fileReadStream.pipe(fileWriteStream);
21-
fileWriteStream.on('close', common.mustCall(() => {
22-
// TODO(lpinca): Remove the forced GC when
23-
// https://github.com/nodejs/node/issues/54918 is fixed.
24-
globalThis.gc({ type: 'major' });
25-
}));
20+
fileWriteStream.on('close', common.mustCall());
Collapse file

‎test/parallel/test-net-write-fully-async-buffer.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-net-write-fully-async-buffer.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const server = net.createServer(common.mustCall(function(conn) {
2323
}
2424

2525
while (conn.write(Buffer.from(data)));
26-
globalThis.gc({ type: 'major' });
26+
globalThis.gc({ type: 'minor' });
2727
// The buffer allocated above should still be alive.
2828
}
2929

Collapse file

‎test/parallel/test-net-write-fully-async-hex-string.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-net-write-fully-async-hex-string.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const server = net.createServer(common.mustCall(function(conn) {
2121
}
2222

2323
while (conn.write(data, 'hex'));
24-
globalThis.gc({ type: 'major' });
24+
globalThis.gc({ type: 'minor' });
2525
// The buffer allocated inside the .write() call should still be alive.
2626
}
2727

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.