We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4a3101 commit 06e0916Copy full SHA for 06e0916
1 file changed
test/known_issues/test-cluster-import-scheduling-policy.mjs
@@ -1,6 +1,7 @@
1
// Refs: https://github.com/nodejs/node/issues/49240
2
// When importing cluster in ESM, cluster.schedulingPolicy cannot be set;
3
// and the env variable doesn't work since imports are hoisted to the top.
4
+// Therefore the scheduling policy is still cluster.SCHED_RR.
5
import '../common/index.mjs';
6
import assert from 'node:assert';
7
import * as cluster from 'cluster';
@@ -9,4 +10,4 @@ import * as cluster from 'cluster';
9
10
assert.strictEqual(cluster.schedulingPolicy, cluster.SCHED_RR);
11
cluster.setupPrimary({ schedulingPolicy: cluster.SCHED_NONE });
12
const settings = cluster.getSettings();
-assert.strictEqual(settings.schedulingPolicy, cluster.SCHED_NONE);
13
+assert.strictEqual(settings.schedulingPolicy, cluster.SCHED_RR);
0 commit comments