You've already forked node-redis
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:
@@ -17,7 +17,7 @@ describe("The 'incr' method", function () {
|
||||
|
||||
beforeEach(function (done) {
|
||||
client = redis.createClient.apply(redis.createClient, args);
|
||||
client.once("connect", function () {
|
||||
client.once("ready", function () {
|
||||
client.set(key, "9007199254740992", function (err, res) {
|
||||
helper.isNotError()(err, res);
|
||||
client.quit();
|
||||
@@ -55,7 +55,7 @@ describe("The 'incr' method", function () {
|
||||
*/
|
||||
client = redis.createClient.apply(redis.createClient, args);
|
||||
client.once("error", done);
|
||||
client.once("connect", function () {
|
||||
client.once("ready", function () {
|
||||
client.set(key, "9007199254740992", function (err, res) {
|
||||
helper.isNotError()(err, res);
|
||||
done();
|
||||
|
Reference in New Issue
Block a user