Skip to content

Commit 71f456c

Browse files
committed
cluster: add internal cluster.getSettings() for test
1 parent f832248 commit 71f456c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/internal/cluster/primary.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ function removeHandlesForWorker(worker) {
161161
});
162162
}
163163

164+
cluster.getSettings = function() {
165+
return { ...cluster.settings };
166+
};
167+
164168
cluster.fork = function(env) {
165169
cluster.setupPrimary();
166170
const id = ++ids;

0 commit comments

Comments
 (0)