1
0
mirror of https://github.com/redis/node-redis.git synced 2025-12-17 11:52:32 +03:00

some cleanups

This commit is contained in:
Leibale
2024-02-05 11:18:27 -05:00
parent 8f3a276509
commit 8340a9e830
21 changed files with 593 additions and 1341 deletions

View File

@@ -17,8 +17,7 @@ export { RedisClusterType, RedisClusterOptions };
export const createCluster = RedisCluster.create;
import RedisSentinel from './lib/sentinel';
import { RedisSentinelOptions, RedisSentinelType } from './lib/sentinel/types';
export { RedisSentinelType, RedisSentinelOptions };
export { RedisSentinelOptions, RedisSentinelType } from './lib/sentinel/types';
export const createSentinel = RedisSentinel.create;
// export { GeoReplyWith } from './lib/commands/generic-transformers';

View File

@@ -460,7 +460,9 @@ export default class RedisClient<
})
.on('reconnecting', () => this.emit('reconnecting'))
.on('drain', () => this.#maybeScheduleWrite())
.on('end', () => this.emit('end'));
.on('end', () => {
console.log('socket on end, emitting end', this.emit('end'));
});
}
#pingTimer?: NodeJS.Timeout;

View File

@@ -88,7 +88,7 @@ async function steadyState(frame: SentinelFramework) {
}
["redis-sentinel-test-password", undefined].forEach(function (password) {
describe.only(`Sentinel - password = ${password}`, () => {
describe.skip(`Sentinel - password = ${password}`, () => {
const config: RedisSentinelConfig = { sentinelName: "test", numberOfNodes: 3, password: password };
const frame = new SentinelFramework(config);
let tracer = new Array<string>();

View File

@@ -1,4 +1,5 @@
import { RedisModules } from '@redis/client';
import { RedisModules } from '../RESP/types';
import sentinel from './commands';
export default {

View File

@@ -16,11 +16,11 @@
},
"devDependencies": {
"@redis/test-utils": "*",
"@types/sinon": "^17.0.2",
"@types/sinon": "^17.0.3",
"sinon": "^17.0.1"
},
"engines": {
"node": ">=14"
"node": ">= 18"
},
"repository": {
"type": "git",