Skip to content

Commit

Permalink
Remove broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Bridgewater committed Sep 19, 2015
1 parent 5a2b54f commit 26e5764
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions test/node_redis.spec.js
Expand Up @@ -359,30 +359,6 @@ describe("The node_redis client", function () {

});

// This seems to be a broken test. The exception should be handled by the user, not by node_redis
it.skip('emits errors thrown from within an on("message") handler', function (done) {
var client2 = redis.createClient.apply(redis.createClient, args);
var name = 'channel';

client2.subscribe(name, function () {
client.publish(name, "some message");
});

client2.on("message", function (channel, data) {
if (channel === name) {
assert.equal(data, "some message");
throw Error('forced exception');
}
return done();
});

client2.once("error", function (err) {
client2.end();
assert.equal(err.message, 'forced exception');
return done();
});
});

describe('idle', function () {
it('emits idle as soon as there are no outstanding commands', function (done) {
client.on('idle', function onIdle () {
Expand Down

0 comments on commit 26e5764

Please sign in to comment.