summaryrefslogtreecommitdiff
path: root/test/pummel
diff options
context:
space:
mode:
authorSebastiaan Deckers <sebdeckers83@gmail.com>2017-07-10 20:55:21 -0400
committerRefael Ackermann <refack@gmail.com>2017-07-21 15:13:47 -0400
commitbb294059040def8e8c0b1719cc17f6537ab5cb39 (patch)
treeacc6b7bcf88da8e6078fa5ab91f6718289f32bbf /test/pummel
parent4f875222445b07016a8294fa5a5bf7418c735489 (diff)
downloadandroid-node-v8-bb294059040def8e8c0b1719cc17f6537ab5cb39.tar.gz
android-node-v8-bb294059040def8e8c0b1719cc17f6537ab5cb39.tar.bz2
android-node-v8-bb294059040def8e8c0b1719cc17f6537ab5cb39.zip
lib,src: fix consistent spacing inside braces
PR-URL: https://github.com/nodejs/node/pull/14162 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/pummel')
-rw-r--r--test/pummel/test-exec.js5
-rw-r--r--test/pummel/test-fs-watch-file-slow.js2
-rw-r--r--test/pummel/test-http-client-reconnect-bug.js2
-rw-r--r--test/pummel/test-keep-alive.js2
-rw-r--r--test/pummel/test-regress-GH-892.js2
-rw-r--r--test/pummel/test-tls-securepair-client.js2
6 files changed, 8 insertions, 7 deletions
diff --git a/test/pummel/test-exec.js b/test/pummel/test-exec.js
index 29852528ee..e6e88f53e1 100644
--- a/test/pummel/test-exec.js
+++ b/test/pummel/test-exec.js
@@ -90,7 +90,8 @@ exec(SLEEP3_COMMAND, { timeout: 50 }, function(err, stdout, stderr) {
const startSleep3 = new Date();
-const killMeTwice = exec(SLEEP3_COMMAND, {timeout: 1000}, killMeTwiceCallback);
+const killMeTwice = exec(SLEEP3_COMMAND, { timeout: 1000 },
+ killMeTwiceCallback);
process.nextTick(function() {
console.log('kill pid %d', killMeTwice.pid);
@@ -117,7 +118,7 @@ function killMeTwiceCallback(err, stdout, stderr) {
}
-exec('python -c "print 200000*\'C\'"', {maxBuffer: 1000},
+exec('python -c "print 200000*\'C\'"', { maxBuffer: 1000 },
function(err, stdout, stderr) {
assert.ok(err);
assert.ok(/maxBuffer/.test(err.message));
diff --git a/test/pummel/test-fs-watch-file-slow.js b/test/pummel/test-fs-watch-file-slow.js
index acccec8a82..9ae9922ec8 100644
--- a/test/pummel/test-fs-watch-file-slow.js
+++ b/test/pummel/test-fs-watch-file-slow.js
@@ -36,7 +36,7 @@ try {
// swallow
}
-fs.watchFile(FILENAME, {interval: TIMEOUT - 250}, function(curr, prev) {
+fs.watchFile(FILENAME, { interval: TIMEOUT - 250 }, function(curr, prev) {
console.log([curr, prev]);
switch (++nevents) {
case 1:
diff --git a/test/pummel/test-http-client-reconnect-bug.js b/test/pummel/test-http-client-reconnect-bug.js
index 656943ec86..d3e540166c 100644
--- a/test/pummel/test-http-client-reconnect-bug.js
+++ b/test/pummel/test-http-client-reconnect-bug.js
@@ -34,7 +34,7 @@ server.on('listening', common.mustCall(function() {
client.on('error', common.mustCall());
client.on('end', common.mustCall());
- const request = client.request('GET', '/', {'host': 'localhost'});
+ const request = client.request('GET', '/', { 'host': 'localhost' });
request.end();
request.on('response', function(response) {
console.log(`STATUS: ${response.statusCode}`);
diff --git a/test/pummel/test-keep-alive.js b/test/pummel/test-keep-alive.js
index d2387495c1..479ec12948 100644
--- a/test/pummel/test-keep-alive.js
+++ b/test/pummel/test-keep-alive.js
@@ -58,7 +58,7 @@ function runAb(opts, callback) {
}
args.push(url.format({ hostname: '127.0.0.1',
- port: common.PORT, protocol: 'http'}));
+ port: common.PORT, protocol: 'http' }));
const child = spawn('wrk', args);
child.stderr.pipe(process.stderr);
diff --git a/test/pummel/test-regress-GH-892.js b/test/pummel/test-regress-GH-892.js
index b1d46adbab..76f98b2957 100644
--- a/test/pummel/test-regress-GH-892.js
+++ b/test/pummel/test-regress-GH-892.js
@@ -97,7 +97,7 @@ const server = https.Server(serverOptions, function(req, res) {
req.on('end', function() {
assert.strictEqual(bytesExpected, uploadCount);
- res.writeHead(200, {'content-type': 'text/plain'});
+ res.writeHead(200, { 'content-type': 'text/plain' });
res.end('successful upload\n');
});
});
diff --git a/test/pummel/test-tls-securepair-client.js b/test/pummel/test-tls-securepair-client.js
index e9bae682d7..e1a489a145 100644
--- a/test/pummel/test-tls-securepair-client.js
+++ b/test/pummel/test-tls-securepair-client.js
@@ -121,7 +121,7 @@ function test(keyfn, certfn, check, next) {
function startClient() {
const s = new net.Stream();
- const sslcontext = tls.createSecureContext({key: key, cert: cert});
+ const sslcontext = tls.createSecureContext({ key: key, cert: cert });
sslcontext.context.setCiphers('RC4-SHA:AES128-SHA:AES256-SHA');
const pair = tls.createSecurePair(sslcontext, false);