diff --git a/packages/client/lib/client/index.ts b/packages/client/lib/client/index.ts index 1599621988..85c6219102 100644 --- a/packages/client/lib/client/index.ts +++ b/packages/client/lib/client/index.ts @@ -745,15 +745,3 @@ attachCommands({ executor: RedisClient.prototype.commandsExecutor }); (RedisClient.prototype as any).Multi = RedisClientMultiCommand; - -const client = RedisClient.create(); - -const a = client.scanIterator( - client.commandOptions({returnBuffers: true}) -) - -const b = client.scanIterator( - client.commandOptions({returnBuffers: false}) -) - -const c = client.scanIterator() \ No newline at end of file diff --git a/packages/test-utils/lib/dockers.ts b/packages/test-utils/lib/dockers.ts index 8af13002fc..8f0be95b09 100644 --- a/packages/test-utils/lib/dockers.ts +++ b/packages/test-utils/lib/dockers.ts @@ -52,7 +52,7 @@ const DOCKER_FODLER_PATH = path.join(__dirname, '../docker'); async function spawnRedisServerDocker({ image, version }: RedisServerDockerConfig, serverArguments: Array): Promise { const port = (await portIterator.next()).value, { stdout, stderr } = await execAsync( - `docker run -d -p ${port}:${port} $(` + + 'docker run -d --network host $(' + `docker build ${DOCKER_FODLER_PATH} -q ` + `--build-arg IMAGE=${image}:${version} ` + `--build-arg REDIS_ARGUMENTS="--save '' --port ${port.toString()} ${serverArguments.join(' ')}"` +