diff --git a/dump.rdb b/dump.rdb new file mode 100644 index 000000000..1028e1dba Binary files /dev/null and b/dump.rdb differ diff --git a/lib/redis/index.ts b/lib/redis/index.ts index e842688c3..e2925967b 100644 --- a/lib/redis/index.ts +++ b/lib/redis/index.ts @@ -526,7 +526,7 @@ Redis.prototype.flushQueue = function (error, options) { */ Redis.prototype._readyCheck = function (callback) { const _this = this; - this.info(function (err, res) { + this.info('persistence', function (err, res) { if (err) { return callback(err); } diff --git a/test/functional/ready_check.ts b/test/functional/ready_check.ts index b7ea16e46..b46384a1d 100644 --- a/test/functional/ready_check.ts +++ b/test/functional/ready_check.ts @@ -5,7 +5,7 @@ describe("ready_check", function () { it("should retry when redis is not ready", function (done) { const redis = new Redis({ lazyConnect: true }); - sinon.stub(redis, "info").callsFake((callback) => { + sinon.stub(redis, "info").callsFake((_section, callback) => { callback(null, "loading:1\r\nloading_eta_seconds:7"); }); // @ts-ignore @@ -28,7 +28,7 @@ describe("ready_check", function () { }, }); - sinon.stub(redis, "info").callsFake((callback) => { + sinon.stub(redis, "info").callsFake((_section, callback) => { callback(new Error("info error")); });