1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

Remove code overhead

Add another domain test

Fix test on node 0.10
This commit is contained in:
Ruben Bridgewater
2016-03-14 22:31:59 +01:00
parent f75b38a3e2
commit ff19663d9d
61 changed files with 127 additions and 131 deletions

View File

@@ -16,16 +16,14 @@ describe("The 'incr' method", function () {
var client;
beforeEach(function (done) {
client = redis.createClient.apply(redis.createClient, args);
client = redis.createClient.apply(null, args);
client.once("ready", function () {
client.set(key, "9007199254740992", function (err, res) {
helper.isNotError()(err, res);
client.quit();
});
});
client.on('end', function () {
return done();
});
client.on('end', done);
});
afterEach(function () {
@@ -52,7 +50,7 @@ describe("The 'incr' method", function () {
9007199254740996 -> 9007199254740996
9007199254740997 -> 9007199254740996
*/
client = redis.createClient.apply(redis.createClient, args);
client = redis.createClient.apply(null, args);
client.once("error", done);
client.once("ready", function () {
client.set(key, "9007199254740992", function (err, res) {