diff --git a/test/parallel/test-process-setgroups.js b/test/parallel/test-process-setgroups.js index 4019cb4888d197..a85d6683164a26 100644 --- a/test/parallel/test-process-setgroups.js +++ b/test/parallel/test-process-setgroups.js @@ -45,3 +45,10 @@ assert.throws( } ); }); + +assert.throws(() => { + process.setgroups([1, 'fhqwhgadshgnsdhjsdbkhsdabkfabkveyb']); +}, { + code: 'ERR_UNKNOWN_CREDENTIAL', + message: 'Group identifier does not exist: fhqwhgadshgnsdhjsdbkhsdabkfabkveyb' +});