Skip to content

Instantly share code, notes, and snippets.

@MylesBorins
Last active March 4, 2016 02:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MylesBorins/6615a27684deb682dfe7 to your computer and use it in GitHub Desktop.
Save MylesBorins/6615a27684deb682dfe7 to your computer and use it in GitHub Desktop.
const common = require('../common');
const assert = require('assert');
const http = require('http');
process.on('uncaughtException', function(error) {
assert.ok(error);
server.close();
});
const server = http.createServer(function(req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'})
res.end('some data')
});
server.listen(8183, function () {
http.get('http://localhost:8183', function (res) {
assert.ok(res);
res.resume();
throw new Error("some error");
});
});
setTimeout(function() {
common.fail('the process should throw and not timeout');
server.close();
}, common.platformTimeout(1000))
@MylesBorins
Copy link
Author

this test works on v5.7.0, broken on v5.7.1

Caused by --> nodejs/node#5419
More info on make callback --> nodejs/node#4507

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment