You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Make test more robust by waiting till redis answered
The former fix was actually not working as expected
This commit is contained in:
@@ -99,10 +99,12 @@ describe("The 'multi' method", function () {
|
||||
describe('when not connected', function () {
|
||||
|
||||
beforeEach(function (done) {
|
||||
var end = helper.callFuncAfter(done, 2);
|
||||
client = redis.createClient.apply(null, args);
|
||||
client.once('ready', function () {
|
||||
client.quit(done);
|
||||
client.quit(end);
|
||||
});
|
||||
client.once('end', end);
|
||||
});
|
||||
|
||||
it('reports an error', function (done) {
|
||||
|
Reference in New Issue
Block a user