Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: use .code for error in setgid
When the 'nobody' user is missing use .code to detect this, its more
robust than than the .message string.

Refs: #19594
  • Loading branch information
= authored and sam-github committed Jun 18, 2019
commit fbbc8629625b867ae31701d4a2764acf20adf2d6
2 changes: 1 addition & 1 deletion test/parallel/test-process-uid-gid.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const oldgid = process.getgid();
try {
process.setgid('nobody');
} catch (err) {
if (err.message !== 'setgid group id does not exist') {
Comment thread
sam-github marked this conversation as resolved.
Outdated
if (err.code !== 'ERR_UNKNOWN_CREDENTIAL') {
throw err;
}
process.setgid('nogroup');
Expand Down