Description
Ref: #264
There are 11 TODO
, XXX
, and FIXME
comments in the test
directory. It would be great to either remove them from the code (if they are no longer valid or at least not particularly high value), or get issues opened for them, or just get whatever it is they are addressing addressed. Here they are as of this writing. (Actually, I'm kind of cheating and leaving out two that @santigimeno has PRs in to fix already.)
-
1: test/internet/test-dgram-multicast-multi-process.js:
var sendSocket = dgram.createSocket('udp4');
// FIXME: a libuv limitation makes it necessary to bind()
// before calling any of the set*() functions. The bind()
// call is what creates the actual socket.
EDIT: This one is being discussed in #5023
-
2: test/parallel/test-child-process-fork-net2.js:
disconnected += 1; }); // XXX This resume() should be unnecessary. // a stream high water mark should be enough to keep // consuming the input.
-
3: test/parallel/test-cluster-disconnect-handles.js:
let isKilling = false;
const handles = require('internal/cluster').handles;
// FIXME(bnoordhuis) lib/cluster.js scans the execArgv arguments for
// debugger flags and renumbers any port numbers it sees starting
// from the default port 5858. Add a '.' that circumvents the -
4: test/parallel/test-cluster-http-pipe.js:
http.createServer(function(req, res) {
assert.equal(req.connection.remoteAddress, undefined);
assert.equal(req.connection.localAddress, undefined); // TODO common.PIPE?
res.writeHead(200);
res.end('OK'); -
5: test/parallel/test-dgram-oob-buffer.js:
});
socket.close(); // FIXME should not be necessary
-
6: test/parallel/test-domain-multi.js:
});
// XXX this bind should not be necessary.
// the write cb behavior in http/net should use an
// event so that it picks up the domain handling. -
7: test/parallel/test-punycode.js:
// (I) Russian (Cyrillic)
/* XXX disabled, fails - possibly a bug in the RFC
'b1abfaaepdrnnbgefbaDotcwatmq2g4l':
'\u043F\u043E\u0447\u0435\u043C\u0443\u0436\u0435\u043E\u043D\u0438' + -
8: test/parallel/test-repl-persistent-history.js:
'4', '2', '\'', '\'42\'\n', prompt, prompt],
after: function ensureHistoryFixture() {
// XXX(Fishrock123) Make sure nothing weird happened to our fixture
// or it's temporary copy.
// Sometimes this test used to erase the fixture and I'm not sure why. -
9: test/pummel/test-tls-securepair-client.js:
function test(keyfn, certfn, check, next) {
// FIXME: Avoid the common PORT as this test currently hits a C-level
// assertion error with node_g. The program aborts without HUPing
// the openssl s_server thus causing many tests to fail with -
10: test/parallel/test-setproctitle.js:
// Original test written by Jakub Lekstan kuebzky@gmail.com
// FIXME add sunos support
if ('linux freebsd darwin'.indexOf(process.platform) === -1) {
console.log(1..0 # Skipped: Unsupported platform [${process.platform}]
); -
11: test/sequential/test-zerolengthbufferbug.js:
var server = http.createServer(function(req, res) {
var buffer = new Buffer(0);
// FIXME: WTF gjslint want this?
res.writeHead(200, {'Content-Type': 'text/html',
'Content-Length': buffer.length});