fix: LiveQueryServer crashes using cacheAdapter on disconnect from Redis 4 server (#9615)
This commit is contained in:
@@ -3,7 +3,10 @@ const RedisPubSub = require('../lib/Adapters/PubSub/RedisPubSub').RedisPubSub;
|
||||
describe('RedisPubSub', function () {
|
||||
beforeEach(function (done) {
|
||||
// Mock redis
|
||||
const createClient = jasmine.createSpy('createClient');
|
||||
const createClient = jasmine.createSpy('createClient').and.returnValue({
|
||||
connect: jasmine.createSpy('connect').and.resolveTo(),
|
||||
on: jasmine.createSpy('on'),
|
||||
});
|
||||
jasmine.mockLibrary('redis', 'createClient', createClient);
|
||||
done();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user