Skip to content

Commit 06e0916

Browse files
committed
cluster: fix test, revert known_issue so it fails now
1 parent e4a3101 commit 06e0916

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Refs: https://github.com/nodejs/node/issues/49240
22
// When importing cluster in ESM, cluster.schedulingPolicy cannot be set;
33
// and the env variable doesn't work since imports are hoisted to the top.
4+
// Therefore the scheduling policy is still cluster.SCHED_RR.
45
import '../common/index.mjs';
56
import assert from 'node:assert';
67
import * as cluster from 'cluster';
@@ -9,4 +10,4 @@ import * as cluster from 'cluster';
910
assert.strictEqual(cluster.schedulingPolicy, cluster.SCHED_RR);
1011
cluster.setupPrimary({ schedulingPolicy: cluster.SCHED_NONE });
1112
const settings = cluster.getSettings();
12-
assert.strictEqual(settings.schedulingPolicy, cluster.SCHED_NONE);
13+
assert.strictEqual(settings.schedulingPolicy, cluster.SCHED_RR);

0 commit comments

Comments
 (0)