Skip to content

Commit 0b56d8c

Browse files
committed
test: spawn EACCES errors on node 8 are less verbose
1 parent ce91a55 commit 0b56d8c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/util/spawn.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,10 @@ const main = () => {
5252

5353
t.test('errors', t => {
5454
t.rejects(spawn(__filename), {
55-
message: `spawn ${__filename} EACCES`,
55+
message: /spawn.*EACCES/,
5656
errno: 'EACCES',
5757
code: 'EACCES',
58-
syscall: `spawn ${__filename}`,
59-
path: __filename,
60-
stdout: '',
61-
stderr: '',
58+
syscall: /spawn/,
6259
})
6360
return t.test('stdio errors', t => {
6461
const proto = require('stream').Readable.prototype

0 commit comments

Comments
 (0)