| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 88919e5 commit 1c324d5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,14 +30,14 @@ if (process.argv[2] === 'child') { | |||
| 30 | 30 | }); | |
| 31 | 31 | ||
| 32 | 32 | // We want to test that if there is an error in a constrained running | |
| 33 | - // environment, it will be one of `ENFILE`, `EMFILE`, or | ||
| 33 | + // environment, it will be one of `ENFILE`, `EMFILE`, 'ENOENT', or | ||
| 34 | 34 | // `ERR_WORKER_INIT_FAILED`. | |
| 35 | - const allowableCodes = ['ERR_WORKER_INIT_FAILED', 'EMFILE', 'ENFILE']; | ||
| 35 | + const expected = ['ERR_WORKER_INIT_FAILED', 'EMFILE', 'ENFILE', 'ENOENT']; | ||
| 36 | 36 | ||
| 37 | 37 | // `common.mustCall*` cannot be used here as in some environments | |
| 38 | 38 | // (i.e. single cpu) `ulimit` may not lead to such an error. | |
| 39 | 39 | worker.on('error', (e) => { | |
| 40 | - assert.ok(allowableCodes.includes(e.code), `${e.code} not expected`); | ||
| 40 | + assert.ok(expected.includes(e.code), `${e.code} not expected`); | ||
| 41 | 41 | }); | |
| 42 | 42 | } | |
| 43 | 43 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments