1
0
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:
Ruben Bridgewater
2017-05-30 07:28:43 +02:00
parent b6c317dbb0
commit 581d4a29f3
4 changed files with 15 additions and 8 deletions

View File

@@ -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)
}