Skip to content

Commit 92c29f2

Browse files
author
Masashi Hirano
committed
test: add test unknown credential error of process.setgroups
Added test to check ERR_UNKNOWN_CREDENTIAL of process.setgroups to increase coverage.
1 parent 3479b1c commit 92c29f2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/parallel/test-process-setgroups.js

+7
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,10 @@ assert.throws(
4545
}
4646
);
4747
});
48+
49+
assert.throws(() => {
50+
process.setgroups([1, 'fhqwhgadshgnsdhjsdbkhsdabkfabkveyb']);
51+
}, {
52+
code: 'ERR_UNKNOWN_CREDENTIAL',
53+
message: 'Group identifier does not exist: fhqwhgadshgnsdhjsdbkhsdabkfabkveyb'
54+
});

0 commit comments

Comments
 (0)