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

Fix race condition in tests

This commit is contained in:
Ruben Bridgewater
2015-10-11 03:31:09 +02:00
parent 8c0d11361a
commit e0b9f0de79
52 changed files with 60 additions and 60 deletions

View File

@@ -23,7 +23,7 @@ describe("The 'dbsize' method", function () {
beforeEach(function (done) {
client = redis.createClient.apply(redis.createClient, args);
client.once("connect", function () {
client.once("ready", function () {
client.quit();
});
client.on('end', function () {
@@ -44,7 +44,7 @@ describe("The 'dbsize' method", function () {
beforeEach(function (done) {
client = redis.createClient.apply(redis.createClient, args);
client.once("connect", function () {
client.once("ready", function () {
client.flushdb(function (err, res) {
helper.isString("OK")(err, res);
done();