mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 21:47:57 +08:00
feat(core): first attempt to init script standard (#8224)
- lazy load - rate limit per path - init .debug.json support - docs - maintainer - radar
This commit is contained in:
@@ -134,8 +134,8 @@ describe('cache', () => {
|
||||
it('redis with quit', async () => {
|
||||
process.env.CACHE_TYPE = 'redis';
|
||||
server = require('../../lib/index');
|
||||
const client = require('../../lib/app').context.cache.client;
|
||||
await client.quit();
|
||||
const { redisClient } = require('../../lib/app').context.cache.clients;
|
||||
await redisClient.quit();
|
||||
const request = supertest(server);
|
||||
|
||||
const response1 = await request.get('/test/cache');
|
||||
|
||||
Reference in New Issue
Block a user