Skip to content

Commit

Permalink
test: add test unknown credential error of process.setgroups
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Masashi Hirano authored and targos committed Aug 24, 2018
1 parent 1cee5cd commit 0d30848
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/parallel/test-process-setgroups.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,10 @@ assert.throws(
}
);
});

assert.throws(() => {
process.setgroups([1, 'fhqwhgadshgnsdhjsdbkhsdabkfabkveyb']);
}, {
name: 'Error',
message: 'group name not found'
});

0 comments on commit 0d30848

Please sign in to comment.