Skip to content

Commit fcf059a

Browse files
Masashi Hiranotargos
Masashi Hirano
authored andcommitted
test: add test unknown credential error of process.setgroups
Added test to check ERR_UNKNOWN_CREDENTIAL of process.setgroups to increase coverage. PR-URL: #22368 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent ae016c8 commit fcf059a

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
@@ -38,3 +38,10 @@ assert.throws(
3838
}
3939
);
4040
});
41+
42+
assert.throws(() => {
43+
process.setgroups([1, 'fhqwhgadshgnsdhjsdbkhsdabkfabkveyb']);
44+
}, {
45+
name: 'Error',
46+
message: 'group name not found'
47+
});

0 commit comments

Comments
 (0)