fix: CacheAdapter does not connect when using a CacheAdapter with a JSON config (#8633)
This commit is contained in:
@@ -167,4 +167,18 @@ describe_only(() => {
|
||||
.then(() => expect(getQueueCount(cache)).toEqual(0))
|
||||
.then(done);
|
||||
});
|
||||
|
||||
it('should start and connect cache adapter', async () => {
|
||||
const server = await reconfigureServer({
|
||||
cacheAdapter: {
|
||||
module: `${__dirname.replace('/spec', '')}/lib/Adapters/Cache/RedisCacheAdapter`,
|
||||
options: {
|
||||
url: 'redis://127.0.0.1:6379/1',
|
||||
},
|
||||
},
|
||||
});
|
||||
const symbol = Object.getOwnPropertySymbols(server.config.cacheController);
|
||||
const client = server.config.cacheController[symbol[0]].client;
|
||||
expect(client.isOpen).toBeTrue();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user