summaryrefslogtreecommitdiff
path: root/test/pummel/test-regress-GH-814_2.js
diff options
context:
space:
mode:
authorWeijia Wang <381152119@qq.com>2018-03-25 22:27:38 +0800
committerWeijia Wang <381152119@qq.com>2018-04-01 22:33:13 +0800
commit254058109f469f64b8ca23bb65a206abab380604 (patch)
tree4069f77207f62816c248ed1ac9910467ff1b15d6 /test/pummel/test-regress-GH-814_2.js
parentf89f79893d6e15938f9237efe4d2473ab4a65e9f (diff)
downloadandroid-node-v8-254058109f469f64b8ca23bb65a206abab380604.tar.gz
android-node-v8-254058109f469f64b8ca23bb65a206abab380604.tar.bz2
android-node-v8-254058109f469f64b8ca23bb65a206abab380604.zip
tools: add 'spaced-comment' into eslint rules
PR-URL: https://github.com/nodejs/node/pull/19596 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'test/pummel/test-regress-GH-814_2.js')
-rw-r--r--test/pummel/test-regress-GH-814_2.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/test/pummel/test-regress-GH-814_2.js b/test/pummel/test-regress-GH-814_2.js
index a183e082f8..1b40ca7b37 100644
--- a/test/pummel/test-regress-GH-814_2.js
+++ b/test/pummel/test-regress-GH-814_2.js
@@ -38,9 +38,7 @@ tailProc.stdout.on('data', tailCB);
function tailCB(data) {
PASS = !data.toString().includes('.');
- if (PASS) {
- //console.error('i');
- } else {
+ if (!PASS) {
console.error('[FAIL]\n DATA -> ');
console.error(data);
console.error('\n');
@@ -52,9 +50,9 @@ function tailCB(data) {
let PASS = true;
const bufPool = [];
const kBufSize = 16 * 1024 * 1024;
-const neverWrittenBuffer = newBuffer(kBufSize, 0x2e); //0x2e === '.'
+const neverWrittenBuffer = newBuffer(kBufSize, 0x2e); // 0x2e === '.'
-const timeToQuit = Date.now() + 5e3; //Test should last no more than this.
+const timeToQuit = Date.now() + 5e3; // Test should last no more than this.
writer();
function writer() {
@@ -79,14 +77,12 @@ function writer() {
bufPool.length = 0;
}
process.nextTick(writer);
- //console.error('o');
}
}
}
function writerCB(err, written) {
- //console.error('cb.');
assert.ifError(err);
}