You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
If there's an error in SELECT and there's no callback, emit the error.
This commit is contained in:
10
test.js
10
test.js
@@ -865,6 +865,16 @@ tests.reconnect_select_db_after_pubsub = function() {
|
||||
});
|
||||
};
|
||||
|
||||
tests.select_error_emits_if_no_callback = function () {
|
||||
var name = "select_error_emits_if_no_callback";
|
||||
|
||||
client.on('error', with_timeout(name, function (err) {
|
||||
require_error(name)(err);
|
||||
next(name);
|
||||
}, 500));
|
||||
client.select(9999);
|
||||
};
|
||||
|
||||
tests.idle = function () {
|
||||
var name = "idle";
|
||||
|
||||
|
Reference in New Issue
Block a user