1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

Fix and add more tests

This commit is contained in:
Ruben Bridgewater
2015-09-17 05:16:36 +02:00
parent 621c511229
commit f543d45d1f
47 changed files with 14 additions and 57 deletions

View File

@@ -156,7 +156,7 @@ describe("The node_redis client", function () {
process.once('uncaughtException', function (err) {
process.on('uncaughtException', mochaListener);
assert(/is not a function|toUpperCase/.test(err));
assert(/ERR Protocol error/.test(err));
done();
});
@@ -359,7 +359,8 @@ describe("The node_redis client", function () {
});
it('emits errors thrown from within an on("message") handler', function (done) {
// 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';