summaryrefslogtreecommitdiff
path: root/user/node/pmmx-test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/node/pmmx-test.patch')
-rw-r--r--user/node/pmmx-test.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/user/node/pmmx-test.patch b/user/node/pmmx-test.patch
new file mode 100644
index 000000000..aad874a90
--- /dev/null
+++ b/user/node/pmmx-test.patch
@@ -0,0 +1,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);