You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
Revert "hmset throws/errors out on non-string values. fixes #218"
Reverting because this was a documentation problem, not a problem with
the code. Performance-wise, this is faster than the approach in #345, though
it may cause users more trouble. This is okay, if someone opens an issue we
can point them to the docs.
This reverts commit b60e001fa0
.
Conflicts:
index.js
test.js
This commit is contained in:
18
test.js
18
test.js
@@ -1616,24 +1616,6 @@ tests.OPTIONAL_CALLBACK_UNDEFINED = function () {
|
||||
client.get("op_cb2", last(name, require_string("y", name)));
|
||||
};
|
||||
|
||||
tests.HMSET_THROWS_ON_NON_STRINGS = function () {
|
||||
var name = "HMSET_THROWS_ON_NON_STRINGS";
|
||||
var hash = name;
|
||||
var data = { "a": [ "this is not a string" ] };
|
||||
|
||||
client.hmset(hash, data, cb);
|
||||
function cb(e, r) {
|
||||
assert(e); // should be an error!
|
||||
}
|
||||
|
||||
// alternative way it throws
|
||||
function thrower() {
|
||||
client.hmset(hash, data);
|
||||
}
|
||||
assert.throws(thrower);
|
||||
next(name);
|
||||
};
|
||||
|
||||
tests.ENABLE_OFFLINE_QUEUE_TRUE = function () {
|
||||
var name = "ENABLE_OFFLINE_QUEUE_TRUE";
|
||||
var cli = redis.createClient(9999, null, {
|
||||
|
Reference in New Issue
Block a user