1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-11 22:42:42 +03:00

spawn redis-servers for tests,

add some tests,
fix client auth on connect
This commit is contained in:
leibale
2021-05-12 18:27:35 -04:00
parent b2f0eb3460
commit 38b2bd75fb
20 changed files with 220 additions and 345 deletions

View File

@@ -79,7 +79,7 @@ export default class RedisCommandsQueue {
options.signal.addEventListener('abort', () => {
this.#waitingToBeSent.removeNode(node);
node.value.reject(new Error('The command was aborted'));
}, { once: true });
}, {once: true});
}
if (options?.asap) {
@@ -96,7 +96,7 @@ export default class RedisCommandsQueue {
const encoded: Array<string> = [];
let size = 0;
let lastCommandChainId: Symbol | undefined;
for (const { encodedCommand, chainId } of this.#waitingToBeSent) {
for (const {encodedCommand, chainId} of this.#waitingToBeSent) {
encoded.push(encodedCommand);
size += encodedCommand.length;
if (size > recommendedSize) {