You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Add simicolons and remove trailing whitespace
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
var async = require("async");
|
||||
var assert = require("assert");
|
||||
var config = require("./lib/config");
|
||||
var helper = require('./helper')
|
||||
var helper = require('./helper');
|
||||
var fork = require("child_process").fork;
|
||||
var redis = config.redis;
|
||||
|
||||
@@ -110,7 +110,7 @@ describe("The node_redis client", function () {
|
||||
client = redis.createClient.apply(redis.createClient, args);
|
||||
client.once("error", done);
|
||||
client.once("connect", function () {
|
||||
client.flushdb(done)
|
||||
client.flushdb(done);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -124,23 +124,19 @@ describe("The node_redis client", function () {
|
||||
client.on("connect", function on_connect() {
|
||||
async.parallel([function (cb) {
|
||||
client.get("recon 1", function (err, res) {
|
||||
helper.isString("one")(err, res);
|
||||
cb();
|
||||
helper.isString("one", cb)(err, res);
|
||||
});
|
||||
}, function (cb) {
|
||||
client.get("recon 1", function (err, res) {
|
||||
helper.isString("one")(err, res);
|
||||
cb();
|
||||
helper.isString("one", cb)(err, res);
|
||||
});
|
||||
}, function (cb) {
|
||||
client.get("recon 2", function (err, res) {
|
||||
helper.isString("two")(err, res);
|
||||
cb();
|
||||
helper.isString("two", cb)(err, res);
|
||||
});
|
||||
}, function (cb) {
|
||||
client.get("recon 2", function (err, res) {
|
||||
helper.isString("two")(err, res);
|
||||
cb();
|
||||
helper.isString("two", cb)(err, res);
|
||||
});
|
||||
}], function (err, results) {
|
||||
client.removeListener("connect", on_connect);
|
||||
@@ -266,7 +262,7 @@ describe("The node_redis client", function () {
|
||||
// this is the expected and desired behavior
|
||||
domain.on('error', function (err) {
|
||||
domain.exit();
|
||||
return done()
|
||||
return done();
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -680,7 +676,7 @@ describe("The node_redis client", function () {
|
||||
});
|
||||
|
||||
it("sets upper bound on how long client waits before reconnecting", function (done) {
|
||||
var time = new Date().getTime()
|
||||
var time = new Date().getTime();
|
||||
var reconnecting = false;
|
||||
|
||||
client = redis.createClient.apply(redis.createClient, args);
|
||||
|
Reference in New Issue
Block a user