File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 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.
45import '../common/index.mjs' ;
56import assert from 'node:assert' ;
67import * as cluster from 'cluster' ;
@@ -9,4 +10,4 @@ import * as cluster from 'cluster';
910assert . strictEqual ( cluster . schedulingPolicy , cluster . SCHED_RR ) ;
1011cluster . setupPrimary ( { schedulingPolicy : cluster . SCHED_NONE } ) ;
1112const settings = cluster . getSettings ( ) ;
12- assert . strictEqual ( settings . schedulingPolicy , cluster . SCHED_NONE ) ;
13+ assert . strictEqual ( settings . schedulingPolicy , cluster . SCHED_RR ) ;
You can’t perform that action at this time.
0 commit comments