summaryrefslogtreecommitdiff
path: root/user/node/pmmx-test.patch
blob: aad874a904eb6366dd0458456f0f5712fcd66cf6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
The pmmx Node binary is too large to read entirely into js memory.

Issue: #795
See-Also: https://bugzilla.opensuse.org/show_bug.cgi?id=1183155

--- node-v16.15.0/test/parallel/test-worker-stdio.js.old	2022-04-26 22:03:31.000000000 +0000
+++ node-v16.15.0/test/parallel/test-worker-stdio.js	2022-12-17 23:44:49.604182229 +0000
@@ -27,7 +27,7 @@
   const passed = new BufferingWritable();
 
   const w = new Worker(__filename, { stdin: true, stdout: true });
-  const source = fs.createReadStream(process.execPath);
+  const source = fs.createReadStream(process.execPath, { end: 1048576 });
   source.pipe(w.stdin);
   source.pipe(original);
   w.stdout.pipe(passed);