Skip to content

Commit

Permalink
test: spawn EACCES errors on node 8 are less verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Oct 29, 2019
1 parent ce91a55 commit 0b56d8c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/util/spawn.js
Expand Up @@ -52,13 +52,10 @@ const main = () => {

t.test('errors', t => {
t.rejects(spawn(__filename), {
message: `spawn ${__filename} EACCES`,
message: /spawn.*EACCES/,
errno: 'EACCES',
code: 'EACCES',
syscall: `spawn ${__filename}`,
path: __filename,
stdout: '',
stderr: '',
syscall: /spawn/,
})
return t.test('stdio errors', t => {
const proto = require('stream').Readable.prototype
Expand Down

0 comments on commit 0b56d8c

Please sign in to comment.