From ea8e6b901f1f05d560e807707c4097a86ba860e4 Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Sat, 8 Feb 2025 19:51:06 -0500 Subject: [PATCH 1/2] test: remove flakiness on macOS test --- test/parallel/test-net-write-fully-async-hex-string.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-net-write-fully-async-hex-string.js b/test/parallel/test-net-write-fully-async-hex-string.js index b80b09f3244585..48c54819b3b676 100644 --- a/test/parallel/test-net-write-fully-async-hex-string.js +++ b/test/parallel/test-net-write-fully-async-hex-string.js @@ -21,7 +21,7 @@ const server = net.createServer(common.mustCall(function(conn) { } while (conn.write(data, 'hex')); - globalThis.gc({ type: 'minor' }); + globalThis.gc({ type: 'major' }); // The buffer allocated inside the .write() call should still be alive. } From a712b4f5adef35b533e14a537aac390dc06b75a9 Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Sun, 9 Feb 2025 14:30:23 -0500 Subject: [PATCH 2/2] test: reduce flakiness on test-net-write-fully-async-buffer --- test/parallel/test-net-write-fully-async-buffer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-net-write-fully-async-buffer.js b/test/parallel/test-net-write-fully-async-buffer.js index 042dd79cb03127..3a3426ba703845 100644 --- a/test/parallel/test-net-write-fully-async-buffer.js +++ b/test/parallel/test-net-write-fully-async-buffer.js @@ -23,7 +23,7 @@ const server = net.createServer(common.mustCall(function(conn) { } while (conn.write(Buffer.from(data))); - globalThis.gc({ type: 'minor' }); + globalThis.gc({ type: 'major' }); // The buffer allocated above should still be alive. }