Skip to content

Commit 26e5764

Browse files
author
Ruben Bridgewater
committed
Remove broken test
1 parent 5a2b54f commit 26e5764

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

test/node_redis.spec.js

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -359,30 +359,6 @@ describe("The node_redis client", function () {
359359

360360
});
361361

362-
// This seems to be a broken test. The exception should be handled by the user, not by node_redis
363-
it.skip('emits errors thrown from within an on("message") handler', function (done) {
364-
var client2 = redis.createClient.apply(redis.createClient, args);
365-
var name = 'channel';
366-
367-
client2.subscribe(name, function () {
368-
client.publish(name, "some message");
369-
});
370-
371-
client2.on("message", function (channel, data) {
372-
if (channel === name) {
373-
assert.equal(data, "some message");
374-
throw Error('forced exception');
375-
}
376-
return done();
377-
});
378-
379-
client2.once("error", function (err) {
380-
client2.end();
381-
assert.equal(err.message, 'forced exception');
382-
return done();
383-
});
384-
});
385-
386362
describe('idle', function () {
387363
it('emits idle as soon as there are no outstanding commands', function (done) {
388364
client.on('idle', function onIdle () {

0 commit comments

Comments
 (0)