mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
2a654e4728
This fixes one of the tests that has been failing on CI on freebsd for a bit by removing an unnecessary timer. PR-URL: https://github.com/nodejs/node/pull/9199 Fixes: https://github.com/nodejs/node/issues/7929 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
18 lines
409 B
JavaScript
18 lines
409 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common');
|
|
const assert = require('assert');
|
|
const dgram = require('dgram');
|
|
|
|
const client = dgram.createSocket('udp4');
|
|
|
|
const buf = Buffer.allocUnsafe(256);
|
|
|
|
const onMessage = common.mustCall(function(err, bytes) {
|
|
assert.ifError(err);
|
|
assert.strictEqual(bytes, buf.length);
|
|
client.close();
|
|
});
|
|
|
|
client.send(buf, common.PORT, common.localhostIPv4, onMessage);
|