Commit f72100b03e9 for nodejs
commit f72100b03e9406ef4e1de68f6398d40c9d276be4
Author: gegham1 <geghamayvazyan9@gmail.com>
Date: Tue Nov 3 00:57:00 2026 +0400
test: fix cluster dgram 1 test on macos
Send to localhostIPv4 instead of 0.0.0.0.
Add strict null equality assert on socket send callback error
for failing fast in such cases.
Fixes: https://github.com/nodejs/node/issues/60050
Signed-off-by: gegham1 <geghamayvazyan9@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/66986
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Tim Perry <pimterry@gmail.com>
diff --git a/test/parallel/parallel.status b/test/parallel/parallel.status
index 15fc53543b0..1d183d62249 100644
--- a/test/parallel/parallel.status
+++ b/test/parallel/parallel.status
@@ -26,10 +26,6 @@ test-fs-cp-async-symlink-points-to-dest: SKIP
[$system==linux]
-[$system==macos]
-# https://github.com/nodejs/node/issues/60050
-test-cluster-dgram-1: SKIP
-
[$arch==arm || $arch==arm64]
# https://github.com/nodejs/node/pull/31178
test-crypto-dh-stateless: SKIP
diff --git a/test/parallel/test-cluster-dgram-1.js b/test/parallel/test-cluster-dgram-1.js
index 71dcb2accb2..8c18cb1de6c 100644
--- a/test/parallel/test-cluster-dgram-1.js
+++ b/test/parallel/test-cluster-dgram-1.js
@@ -56,10 +56,12 @@ function primary() {
doSend();
function doSend() {
- socket.send(buf, 0, buf.length, address.port, address.address, afterSend);
+ socket.send(buf, 0, buf.length, address.port, common.localhostIPv4, afterSend);
}
- function afterSend() {
+ function afterSend(error) {
+ assert.strictEqual(error, null);
+
sent++;
if (sent < NUM_WORKERS * PACKETS_PER_WORKER) {
doSend();