You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
chore: improve coverage further
This commit is contained in:
@@ -91,7 +91,7 @@ function execTransaction (multi) {
|
||||
// Drain queue, callback will catch 'QUEUED' or error
|
||||
for (var index = 0; index < len; index++) {
|
||||
// The commands may not be shifted off, since they are needed in the result handler
|
||||
promises.push(pipelineTransactionCommand(multi, queue.get(index), index).catch((e) => e))
|
||||
promises.push(pipelineTransactionCommand(multi, queue.peekAt(index), index).catch((e) => e))
|
||||
}
|
||||
|
||||
const main = client.internalSendCommand(new Command('exec', []))
|
||||
@@ -130,7 +130,7 @@ function execBatch (multi) {
|
||||
return Promise.all(promises).then((res) => {
|
||||
if (error) {
|
||||
const err = new Errors.RedisError('bla failed')
|
||||
err.code = 'foo'
|
||||
err.code = 'ERR'
|
||||
err.replies = res
|
||||
return Promise.reject(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user