-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR-URL: #50770 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: James M Snell <jasnell@gmail.com>
- Loading branch information
1 parent
932a5d7
commit f808e7a
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
'use strict'; | ||
const common = require('../common'); | ||
const assert = require('assert'); | ||
const net = require('net'); | ||
|
||
if (!common.isLinux) common.skip(); | ||
|
||
const path = '\0abstract'; | ||
const message = /can not set readableAll or writableAllt to true when path is abstract unix socket/; | ||
|
||
assert.throws(() => { | ||
const server = net.createServer(common.mustNotCall()); | ||
server.listen({ | ||
path, | ||
readableAll: true | ||
}); | ||
}, message); | ||
|
||
assert.throws(() => { | ||
const server = net.createServer(common.mustNotCall()); | ||
server.listen({ | ||
path, | ||
writableAll: true | ||
}); | ||
}, message); | ||
|
||
assert.throws(() => { | ||
const server = net.createServer(common.mustNotCall()); | ||
server.listen({ | ||
path, | ||
readableAll: true, | ||
writableAll: true | ||
}); | ||
}, message); |