diff --git a/pkgs/development/web/nodejs/nodejs.nix b/pkgs/development/web/nodejs/nodejs.nix index 979a2d05630b..352362c1f651 100644 --- a/pkgs/development/web/nodejs/nodejs.nix +++ b/pkgs/development/web/nodejs/nodejs.nix @@ -428,6 +428,9 @@ let # Those are annoyingly flaky, but not enough to be marked as such upstream. "test-wasi" + + # This is failing on newer macOS versions, no fix has yet been provided upstream: + "test-cluster-dgram-1" ] ++ lib.optionals (stdenv.buildPlatform.isDarwin && stdenv.buildPlatform.isx86_64) [ # These tests fail on x86_64-darwin (even without sandbox). @@ -442,12 +445,9 @@ let ] # Those are annoyingly flaky, but not enough to be marked as such upstream. ++ lib.optional (majorVersion == "22") "test-child-process-stdout-flush-exit" - ++ lib.optionals (majorVersion == "22" && stdenv.buildPlatform.isDarwin) [ - "test-cluster-dgram-1" - "test/sequential/test-http-server-request-timeouts-mixed.js" - ] - # This is failing on newer macOS versions, no fix has yet been provided upstream: - ++ lib.optional (majorVersion == "24" && stdenv.buildPlatform.isDarwin) "test-cluster-dgram-1" + ++ lib.optional ( + majorVersion == "22" && stdenv.buildPlatform.isDarwin + ) "test/sequential/test-http-server-request-timeouts-mixed.js" ) }" ];