We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4ad5d7 commit 2b2eca2Copy full SHA for 2b2eca2
1 file changed
test/parallel/test-net-listen-anyaddr.js
@@ -0,0 +1,10 @@
1
+var assert = require('assert');
2
+var cp = require('child_process');
3
+
4
+var args = [
5
+ '-e',
6
+ "require('net').createServer().listen(0, function() { this.close(); });",
7
+];
8
9
+// should exit cleanly almost immediately
10
+cp.execFile(process.execPath, args, {timeout: 500}, assert.ifError);
0 commit comments