benchmark,test,lib: remove extra spaces
In preparation for stricter linting, remove extra spaces. PR-URL: https://github.com/nodejs/node/pull/6645 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Roman Reiss <me@silverwind.io>
This commit is contained in:
parent
e16e611089
commit
a56da51a38
@ -12,10 +12,10 @@ var bench = common.createBenchmark(main, {
|
|||||||
millions: [1]
|
millions: [1]
|
||||||
});
|
});
|
||||||
|
|
||||||
const INT8 = 0x7f;
|
const INT8 = 0x7f;
|
||||||
const INT16 = 0x7fff;
|
const INT16 = 0x7fff;
|
||||||
const INT32 = 0x7fffffff;
|
const INT32 = 0x7fffffff;
|
||||||
const UINT8 = (INT8 * 2) + 1;
|
const UINT8 = (INT8 * 2) + 1;
|
||||||
const UINT16 = (INT16 * 2) + 1;
|
const UINT16 = (INT16 * 2) + 1;
|
||||||
const UINT32 = INT32;
|
const UINT32 = INT32;
|
||||||
|
|
||||||
|
@ -10,10 +10,10 @@ var bench = common.createBenchmark(main, {
|
|||||||
millions: [1]
|
millions: [1]
|
||||||
});
|
});
|
||||||
|
|
||||||
const INT8 = 0x7f;
|
const INT8 = 0x7f;
|
||||||
const INT16 = 0x7fff;
|
const INT16 = 0x7fff;
|
||||||
const INT32 = 0x7fffffff;
|
const INT32 = 0x7fffffff;
|
||||||
const UINT8 = INT8 * 2;
|
const UINT8 = INT8 * 2;
|
||||||
const UINT16 = INT16 * 2;
|
const UINT16 = INT16 * 2;
|
||||||
const UINT32 = INT32 * 2;
|
const UINT32 = INT32 * 2;
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ function setupHistory(repl, historyPath, oldHistoryPath, ready) {
|
|||||||
`the new one i.e., ${historyPath} and is empty.\nUsing it as is.\n`);
|
`the new one i.e., ${historyPath} and is empty.\nUsing it as is.\n`);
|
||||||
repl._refreshLine();
|
repl._refreshLine();
|
||||||
|
|
||||||
} else if (oldHistoryPath) {
|
} else if (oldHistoryPath) {
|
||||||
// Grab data from the older pre-v3.0 JSON NODE_REPL_HISTORY_FILE format.
|
// Grab data from the older pre-v3.0 JSON NODE_REPL_HISTORY_FILE format.
|
||||||
repl._writeToOutput(
|
repl._writeToOutput(
|
||||||
'\nConverting old JSON repl history to line-separated history.\n' +
|
'\nConverting old JSON repl history to line-separated history.\n' +
|
||||||
|
@ -779,7 +779,7 @@ const win32 = {
|
|||||||
end = i;
|
end = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// We saw the first non-path separator
|
// We saw the first non-path separator
|
||||||
matchedSlash = false;
|
matchedSlash = false;
|
||||||
}
|
}
|
||||||
@ -1335,7 +1335,7 @@ const posix = {
|
|||||||
end = i;
|
end = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// We saw the first non-path separator
|
// We saw the first non-path separator
|
||||||
matchedSlash = false;
|
matchedSlash = false;
|
||||||
}
|
}
|
||||||
|
@ -58,7 +58,7 @@ QueryString.unescapeBuffer = function(s, decodeSpaces) {
|
|||||||
case 2: // Second hex digit
|
case 2: // Second hex digit
|
||||||
state = 0;
|
state = 0;
|
||||||
if (c >= 48/*0*/ && c <= 57/*9*/) {
|
if (c >= 48/*0*/ && c <= 57/*9*/) {
|
||||||
m = c - 48/*0*/;
|
m = c - 48/*0*/;
|
||||||
} else if (c >= 65/*A*/ && c <= 70/*F*/) {
|
} else if (c >= 65/*A*/ && c <= 70/*F*/) {
|
||||||
m = c - 65/*A*/ + 10;
|
m = c - 65/*A*/ + 10;
|
||||||
} else if (c >= 97/*a*/ && c <= 102/*f*/) {
|
} else if (c >= 97/*a*/ && c <= 102/*f*/) {
|
||||||
|
@ -156,7 +156,7 @@ class LineParser {
|
|||||||
|
|
||||||
this.shouldFail = this.shouldFail ||
|
this.shouldFail = this.shouldFail ||
|
||||||
((!this._literal && lastChar === '\\') ||
|
((!this._literal && lastChar === '\\') ||
|
||||||
(this._literal && lastChar !== '\\'));
|
(this._literal && lastChar !== '\\'));
|
||||||
|
|
||||||
return line;
|
return line;
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ function convertProtocols(protocols) {
|
|||||||
return buff;
|
return buff;
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.convertNPNProtocols = function(protocols, out) {
|
exports.convertNPNProtocols = function(protocols, out) {
|
||||||
// If protocols is Array - translate it into buffer
|
// If protocols is Array - translate it into buffer
|
||||||
if (Array.isArray(protocols)) {
|
if (Array.isArray(protocols)) {
|
||||||
protocols = convertProtocols(protocols);
|
protocols = convertProtocols(protocols);
|
||||||
|
@ -22,13 +22,13 @@ check(64, 1, 0);
|
|||||||
check(97, 1, 0);
|
check(97, 1, 0);
|
||||||
|
|
||||||
// Buffers can be unaligned
|
// Buffers can be unaligned
|
||||||
check(64, 8, 0);
|
check(64, 8, 0);
|
||||||
check(64, 16, 0);
|
check(64, 16, 0);
|
||||||
check(64, 8, 1);
|
check(64, 8, 1);
|
||||||
check(64, 16, 1);
|
check(64, 16, 1);
|
||||||
check(97, 8, 1);
|
check(97, 8, 1);
|
||||||
check(97, 16, 1);
|
check(97, 16, 1);
|
||||||
check(97, 8, 3);
|
check(97, 8, 3);
|
||||||
check(97, 16, 3);
|
check(97, 16, 3);
|
||||||
|
|
||||||
// Empty ArrayBuffer does not allocate data, worth checking
|
// Empty ArrayBuffer does not allocate data, worth checking
|
||||||
|
@ -6,7 +6,7 @@ function serverHandler(req, res) {
|
|||||||
res.connection.destroy();
|
res.connection.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
const http = require('http');
|
const http = require('http');
|
||||||
const weak = require('weak');
|
const weak = require('weak');
|
||||||
const common = require('../common');
|
const common = require('../common');
|
||||||
const assert = require('assert');
|
const assert = require('assert');
|
||||||
|
@ -1023,7 +1023,7 @@ Buffer.from(Buffer.allocUnsafe(0), 0, 0);
|
|||||||
[ 'utf9',
|
[ 'utf9',
|
||||||
'utf-7',
|
'utf-7',
|
||||||
'Unicode-FTW',
|
'Unicode-FTW',
|
||||||
'new gnu gun' ].forEach(function(enc) {
|
'new gnu gun' ].forEach(function(enc) {
|
||||||
assert.equal(Buffer.isEncoding(enc), false);
|
assert.equal(Buffer.isEncoding(enc), false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ require('../common');
|
|||||||
var assert = require('assert');
|
var assert = require('assert');
|
||||||
|
|
||||||
var zero = [];
|
var zero = [];
|
||||||
var one = [ Buffer.from('asdf') ];
|
var one = [ Buffer.from('asdf') ];
|
||||||
var long = [];
|
var long = [];
|
||||||
for (var i = 0; i < 10; i++) long.push(Buffer.from('asdf'));
|
for (var i = 0; i < 10; i++) long.push(Buffer.from('asdf'));
|
||||||
|
|
||||||
|
@ -164,7 +164,7 @@ assert(!mixedByteStringUtf8.includes('\u0396'));
|
|||||||
// Long string that isn't a simple repeat of a shorter string.
|
// Long string that isn't a simple repeat of a shorter string.
|
||||||
var longString = 'A';
|
var longString = 'A';
|
||||||
for (let i = 66; i < 76; i++) { // from 'B' to 'K'
|
for (let i = 66; i < 76; i++) { // from 'B' to 'K'
|
||||||
longString = longString + String.fromCharCode(i) + longString;
|
longString = longString + String.fromCharCode(i) + longString;
|
||||||
}
|
}
|
||||||
|
|
||||||
const longBufferString = Buffer.from(longString);
|
const longBufferString = Buffer.from(longString);
|
||||||
|
@ -183,7 +183,7 @@ assert.equal(-1, mixedByteStringUtf8.indexOf('\u0396'));
|
|||||||
// Long string that isn't a simple repeat of a shorter string.
|
// Long string that isn't a simple repeat of a shorter string.
|
||||||
var longString = 'A';
|
var longString = 'A';
|
||||||
for (let i = 66; i < 76; i++) { // from 'B' to 'K'
|
for (let i = 66; i < 76; i++) { // from 'B' to 'K'
|
||||||
longString = longString + String.fromCharCode(i) + longString;
|
longString = longString + String.fromCharCode(i) + longString;
|
||||||
}
|
}
|
||||||
|
|
||||||
var longBufferString = Buffer.from(longString);
|
var longBufferString = Buffer.from(longString);
|
||||||
|
@ -1016,7 +1016,7 @@ Buffer(Buffer(0), 0, 0);
|
|||||||
[ 'utf9',
|
[ 'utf9',
|
||||||
'utf-7',
|
'utf-7',
|
||||||
'Unicode-FTW',
|
'Unicode-FTW',
|
||||||
'new gnu gun' ].forEach(function(enc) {
|
'new gnu gun' ].forEach(function(enc) {
|
||||||
assert.equal(Buffer.isEncoding(enc), false);
|
assert.equal(Buffer.isEncoding(enc), false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ function testHelper(stream, args, expectedOutput, cmd, env) {
|
|||||||
cmd + ' and args \'' + args + '\'');
|
cmd + ' and args \'' + args + '\'');
|
||||||
|
|
||||||
function childOk(child) {
|
function childOk(child) {
|
||||||
console.error('Child #' + ++num_children_ok +
|
console.error('Child #' + ++num_children_ok +
|
||||||
' [pid:' + child.pid + '] OK.');
|
' [pid:' + child.pid + '] OK.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ var crypto = require('crypto');
|
|||||||
crypto.DEFAULT_ENCODING = 'buffer';
|
crypto.DEFAULT_ENCODING = 'buffer';
|
||||||
|
|
||||||
function aes256(decipherFinal) {
|
function aes256(decipherFinal) {
|
||||||
var iv = Buffer.from('00000000000000000000000000000000', 'hex');
|
var iv = Buffer.from('00000000000000000000000000000000', 'hex');
|
||||||
var key = Buffer.from('0123456789abcdef0123456789abcdef' +
|
var key = Buffer.from('0123456789abcdef0123456789abcdef' +
|
||||||
'0123456789abcdef0123456789abcdef', 'hex');
|
'0123456789abcdef0123456789abcdef', 'hex');
|
||||||
|
|
||||||
|
@ -12,12 +12,12 @@ assert.throws(function() {
|
|||||||
}, TypeError); // First argument should be a buffer.
|
}, TypeError); // First argument should be a buffer.
|
||||||
|
|
||||||
// send(buf, offset, length, port, host)
|
// send(buf, offset, length, port, host)
|
||||||
assert.throws(function() { sock.send(buf, 1, 1, -1, host); }, RangeError);
|
assert.throws(function() { sock.send(buf, 1, 1, -1, host); }, RangeError);
|
||||||
assert.throws(function() { sock.send(buf, 1, 1, 0, host); }, RangeError);
|
assert.throws(function() { sock.send(buf, 1, 1, 0, host); }, RangeError);
|
||||||
assert.throws(function() { sock.send(buf, 1, 1, 65536, host); }, RangeError);
|
assert.throws(function() { sock.send(buf, 1, 1, 65536, host); }, RangeError);
|
||||||
|
|
||||||
// send(buf, port, host)
|
// send(buf, port, host)
|
||||||
assert.throws(function() { sock.send(23, 12345, host); }, TypeError);
|
assert.throws(function() { sock.send(23, 12345, host); }, TypeError);
|
||||||
|
|
||||||
// send([buf1, ..], port, host)
|
// send([buf1, ..], port, host)
|
||||||
assert.throws(function() { sock.send([buf, 23], 12345, host); }, TypeError);
|
assert.throws(function() { sock.send([buf, 23], 12345, host); }, TypeError);
|
||||||
|
@ -239,7 +239,7 @@ if (process.argv[2] === 'child') {
|
|||||||
testCmd += 'ulimit -c 0 && ';
|
testCmd += 'ulimit -c 0 && ';
|
||||||
}
|
}
|
||||||
|
|
||||||
testCmd += process.argv[0];
|
testCmd += process.argv[0];
|
||||||
testCmd += ' ' + '--abort-on-uncaught-exception';
|
testCmd += ' ' + '--abort-on-uncaught-exception';
|
||||||
testCmd += ' ' + process.argv[1];
|
testCmd += ' ' + process.argv[1];
|
||||||
testCmd += ' ' + 'child';
|
testCmd += ' ' + 'child';
|
||||||
|
@ -150,7 +150,7 @@ if (process.argv[2] === 'child') {
|
|||||||
testCmd += 'ulimit -c 0 && ';
|
testCmd += 'ulimit -c 0 && ';
|
||||||
}
|
}
|
||||||
|
|
||||||
testCmd += process.argv[0];
|
testCmd += process.argv[0];
|
||||||
testCmd += ' ' + '--abort-on-uncaught-exception';
|
testCmd += ' ' + '--abort-on-uncaught-exception';
|
||||||
testCmd += ' ' + process.argv[1];
|
testCmd += ' ' + process.argv[1];
|
||||||
testCmd += ' ' + 'child';
|
testCmd += ' ' + 'child';
|
||||||
|
@ -103,7 +103,7 @@ if (process.argv[2] === 'child') {
|
|||||||
if (options.useTryCatch)
|
if (options.useTryCatch)
|
||||||
useTryCatchOpt = 'useTryCatch';
|
useTryCatchOpt = 'useTryCatch';
|
||||||
|
|
||||||
cmdToExec += process.argv[0] + ' ';
|
cmdToExec += process.argv[0] + ' ';
|
||||||
cmdToExec += (cmdLineOption ? cmdLineOption : '') + ' ';
|
cmdToExec += (cmdLineOption ? cmdLineOption : '') + ' ';
|
||||||
cmdToExec += process.argv[1] + ' ';
|
cmdToExec += process.argv[1] + ' ';
|
||||||
cmdToExec += [
|
cmdToExec += [
|
||||||
|
@ -21,33 +21,33 @@ function check(async, sync) {
|
|||||||
async.apply(null, argsAsync);
|
async.apply(null, argsAsync);
|
||||||
}
|
}
|
||||||
|
|
||||||
check(fs.access, fs.accessSync, 'foo\u0000bar');
|
check(fs.access, fs.accessSync, 'foo\u0000bar');
|
||||||
check(fs.access, fs.accessSync, 'foo\u0000bar', fs.F_OK);
|
check(fs.access, fs.accessSync, 'foo\u0000bar', fs.F_OK);
|
||||||
check(fs.appendFile, fs.appendFileSync, 'foo\u0000bar');
|
check(fs.appendFile, fs.appendFileSync, 'foo\u0000bar');
|
||||||
check(fs.chmod, fs.chmodSync, 'foo\u0000bar', '0644');
|
check(fs.chmod, fs.chmodSync, 'foo\u0000bar', '0644');
|
||||||
check(fs.chown, fs.chownSync, 'foo\u0000bar', 12, 34);
|
check(fs.chown, fs.chownSync, 'foo\u0000bar', 12, 34);
|
||||||
check(fs.link, fs.linkSync, 'foo\u0000bar', 'foobar');
|
check(fs.link, fs.linkSync, 'foo\u0000bar', 'foobar');
|
||||||
check(fs.link, fs.linkSync, 'foobar', 'foo\u0000bar');
|
check(fs.link, fs.linkSync, 'foobar', 'foo\u0000bar');
|
||||||
check(fs.lstat, fs.lstatSync, 'foo\u0000bar');
|
check(fs.lstat, fs.lstatSync, 'foo\u0000bar');
|
||||||
check(fs.mkdir, fs.mkdirSync, 'foo\u0000bar', '0755');
|
check(fs.mkdir, fs.mkdirSync, 'foo\u0000bar', '0755');
|
||||||
check(fs.open, fs.openSync, 'foo\u0000bar', 'r');
|
check(fs.open, fs.openSync, 'foo\u0000bar', 'r');
|
||||||
check(fs.readFile, fs.readFileSync, 'foo\u0000bar');
|
check(fs.readFile, fs.readFileSync, 'foo\u0000bar');
|
||||||
check(fs.readdir, fs.readdirSync, 'foo\u0000bar');
|
check(fs.readdir, fs.readdirSync, 'foo\u0000bar');
|
||||||
check(fs.readlink, fs.readlinkSync, 'foo\u0000bar');
|
check(fs.readlink, fs.readlinkSync, 'foo\u0000bar');
|
||||||
check(fs.realpath, fs.realpathSync, 'foo\u0000bar');
|
check(fs.realpath, fs.realpathSync, 'foo\u0000bar');
|
||||||
check(fs.rename, fs.renameSync, 'foo\u0000bar', 'foobar');
|
check(fs.rename, fs.renameSync, 'foo\u0000bar', 'foobar');
|
||||||
check(fs.rename, fs.renameSync, 'foobar', 'foo\u0000bar');
|
check(fs.rename, fs.renameSync, 'foobar', 'foo\u0000bar');
|
||||||
check(fs.rmdir, fs.rmdirSync, 'foo\u0000bar');
|
check(fs.rmdir, fs.rmdirSync, 'foo\u0000bar');
|
||||||
check(fs.stat, fs.statSync, 'foo\u0000bar');
|
check(fs.stat, fs.statSync, 'foo\u0000bar');
|
||||||
check(fs.symlink, fs.symlinkSync, 'foo\u0000bar', 'foobar');
|
check(fs.symlink, fs.symlinkSync, 'foo\u0000bar', 'foobar');
|
||||||
check(fs.symlink, fs.symlinkSync, 'foobar', 'foo\u0000bar');
|
check(fs.symlink, fs.symlinkSync, 'foobar', 'foo\u0000bar');
|
||||||
check(fs.truncate, fs.truncateSync, 'foo\u0000bar');
|
check(fs.truncate, fs.truncateSync, 'foo\u0000bar');
|
||||||
check(fs.unlink, fs.unlinkSync, 'foo\u0000bar');
|
check(fs.unlink, fs.unlinkSync, 'foo\u0000bar');
|
||||||
check(null, fs.unwatchFile, 'foo\u0000bar', common.fail);
|
check(null, fs.unwatchFile, 'foo\u0000bar', common.fail);
|
||||||
check(fs.utimes, fs.utimesSync, 'foo\u0000bar', 0, 0);
|
check(fs.utimes, fs.utimesSync, 'foo\u0000bar', 0, 0);
|
||||||
check(null, fs.watch, 'foo\u0000bar', common.fail);
|
check(null, fs.watch, 'foo\u0000bar', common.fail);
|
||||||
check(null, fs.watchFile, 'foo\u0000bar', common.fail);
|
check(null, fs.watchFile, 'foo\u0000bar', common.fail);
|
||||||
check(fs.writeFile, fs.writeFileSync, 'foo\u0000bar');
|
check(fs.writeFile, fs.writeFileSync, 'foo\u0000bar');
|
||||||
|
|
||||||
// an 'error' for exists means that it doesn't exist.
|
// an 'error' for exists means that it doesn't exist.
|
||||||
// one of many reasons why this file is the absolute worst.
|
// one of many reasons why this file is the absolute worst.
|
||||||
|
@ -26,7 +26,7 @@ https.createServer(options, function(req, res) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Do request and let agent cache the session
|
// Do request and let agent cache the session
|
||||||
function first(server) {
|
function first(server) {
|
||||||
const req = https.request({
|
const req = https.request({
|
||||||
port: common.PORT,
|
port: common.PORT,
|
||||||
rejectUnauthorized: false
|
rejectUnauthorized: false
|
||||||
|
@ -5,6 +5,6 @@ const vm = require('vm');
|
|||||||
|
|
||||||
assert.doesNotThrow(function() {
|
assert.doesNotThrow(function() {
|
||||||
var context = vm.createContext({ process: process });
|
var context = vm.createContext({ process: process });
|
||||||
var result = vm.runInContext('process.env["PATH"]', context);
|
var result = vm.runInContext('process.env["PATH"]', context);
|
||||||
assert.notEqual(undefined, result);
|
assert.notEqual(undefined, result);
|
||||||
});
|
});
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
var common = require('../common');
|
var common = require('../common');
|
||||||
|
|
||||||
var repl = require('repl');
|
var repl = require('repl');
|
||||||
|
|
||||||
const putIn = new common.ArrayStream();
|
const putIn = new common.ArrayStream();
|
||||||
repl.start('', putIn);
|
repl.start('', putIn);
|
||||||
|
@ -258,7 +258,7 @@ test('end callback after .write() call', function(t) {
|
|||||||
test('end callback called after write callback', function(t) {
|
test('end callback called after write callback', function(t) {
|
||||||
var tw = new TestWriter();
|
var tw = new TestWriter();
|
||||||
var writeCalledback = false;
|
var writeCalledback = false;
|
||||||
tw.write(Buffer.from('hello world'), function() {
|
tw.write(Buffer.from('hello world'), function() {
|
||||||
writeCalledback = true;
|
writeCalledback = true;
|
||||||
});
|
});
|
||||||
tw.end(function() {
|
tw.end(function() {
|
||||||
|
@ -27,7 +27,7 @@ test(
|
|||||||
test('ucs2', Buffer.from('ababc', 'ucs2'), 'ababc');
|
test('ucs2', Buffer.from('ababc', 'ucs2'), 'ababc');
|
||||||
|
|
||||||
// UTF-16LE
|
// UTF-16LE
|
||||||
test('ucs2', Buffer.from('3DD84DDC', 'hex'), '\ud83d\udc4d'); // thumbs up
|
test('ucs2', Buffer.from('3DD84DDC', 'hex'), '\ud83d\udc4d'); // thumbs up
|
||||||
|
|
||||||
console.log(' crayon!');
|
console.log(' crayon!');
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ if (!common.hasCrypto) {
|
|||||||
var tls = require('tls');
|
var tls = require('tls');
|
||||||
|
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var key = fs.readFileSync(common.fixturesDir + '/keys/agent2-key.pem');
|
var key = fs.readFileSync(common.fixturesDir + '/keys/agent2-key.pem');
|
||||||
var cert = fs.readFileSync(common.fixturesDir + '/keys/agent2-cert.pem');
|
var cert = fs.readFileSync(common.fixturesDir + '/keys/agent2-cert.pem');
|
||||||
|
|
||||||
var ntests = 0;
|
var ntests = 0;
|
||||||
|
@ -9,7 +9,7 @@ if (!common.hasCrypto) {
|
|||||||
var tls = require('tls');
|
var tls = require('tls');
|
||||||
|
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var key = fs.readFileSync(common.fixturesDir + '/keys/agent2-key.pem');
|
var key = fs.readFileSync(common.fixturesDir + '/keys/agent2-key.pem');
|
||||||
var cert = fs.readFileSync(common.fixturesDir + '/keys/agent2-cert.pem');
|
var cert = fs.readFileSync(common.fixturesDir + '/keys/agent2-cert.pem');
|
||||||
|
|
||||||
var nsuccess = 0;
|
var nsuccess = 0;
|
||||||
|
@ -10,7 +10,7 @@ var tls = require('tls');
|
|||||||
|
|
||||||
var spawn = require('child_process').spawn;
|
var spawn = require('child_process').spawn;
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var key = fs.readFileSync(common.fixturesDir + '/keys/agent2-key.pem');
|
var key = fs.readFileSync(common.fixturesDir + '/keys/agent2-key.pem');
|
||||||
var cert = fs.readFileSync(common.fixturesDir + '/keys/agent2-cert.pem');
|
var cert = fs.readFileSync(common.fixturesDir + '/keys/agent2-cert.pem');
|
||||||
var nsuccess = 0;
|
var nsuccess = 0;
|
||||||
var ntests = 0;
|
var ntests = 0;
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
|
|
||||||
require('../common');
|
require('../common');
|
||||||
|
|
||||||
var Timer = process.binding('timer_wrap').Timer;
|
var Timer = process.binding('timer_wrap').Timer;
|
||||||
var assert = require('assert');
|
var assert = require('assert');
|
||||||
|
|
||||||
var timerFired = false;
|
var timerFired = false;
|
||||||
var intervalFired = false;
|
var intervalFired = false;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user