Skip to content

Commit 4a3d094

Browse files
nodejs: fix flaky test
1 parent 4685474 commit 4a3d094

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pkgs/development/web/nodejs/nodejs.nix

+9-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
, gnupg
99
, darwin
1010
, installShellFiles
11+
, fetchpatch
1112
}:
1213

1314
{ enableNpm ? true, version, sha256, patches ? [] } @args:
@@ -249,7 +250,13 @@ let
249250

250251
pos = builtins.unsafeGetAttrPos "version" args;
251252

252-
inherit patches;
253+
patches = patches ++ [
254+
# fixes test failure
255+
(fetchpatch {
256+
url = "https://github.com/nodejs/node/commit/b6fe731c55eb4cb9d14042a23e5002ed39b7c8b7.patch";
257+
hash = "sha256-y45G9Vc58Nh0I+kSS3iRnoZe7se55rk3PVMpgZgPY+U=";
258+
})
259+
];
253260

254261
__darwinAllowLocalNetworking = true; # for tests
255262

@@ -299,6 +306,7 @@ let
299306
"FLAKY_TESTS=skip"
300307
# Skip some tests that are not passing in this context
301308
"CI_SKIP_TESTS=${lib.concatStringsSep "," ([
309+
# Tests don't work in sandbox.
302310
"test-child-process-exec-env"
303311
"test-child-process-uid-gid"
304312
"test-fs-write-stream-eagain"

0 commit comments

Comments
 (0)