Browse Source

Make test more robust

The redis server ends the connection and the stream end might be triggered
before the quit command returned and is therefor racy.
internal
Ruben Bridgewater 9 years ago
parent
commit
68f2a8894e
  1. 3
      test/multi.spec.js

3
test/multi.spec.js

@ -101,9 +101,8 @@ describe("The 'multi' method", function () {
beforeEach(function (done) {
client = redis.createClient.apply(null, args);
client.once('ready', function () {
client.quit();
client.quit(done);
});
client.once('end', done);
});
it('reports an error', function (done) {

Loading…
Cancel
Save