diff --git a/lib/config.js b/lib/config.js index 8b16eeff06..d9691ed51a 100644 --- a/lib/config.js +++ b/lib/config.js @@ -40,7 +40,7 @@ const calculateValue = () => { requestRetry: parseInt(envs.REQUEST_RETRY) || 2, // 请求失败重试次数 // 是否显示 Debug 信息,取值 boolean 'false' 'key' ,取值为 'false' false 时永远不显示,取值为 'key' 时带上 ?debug=key 显示 debugInfo: envs.DEBUG_INFO || true, - titleLengthLimit: parseInt(envs.TITLE_LENGTH_LIMIT) || 100, + titleLengthLimit: parseInt(envs.TITLE_LENGTH_LIMIT) || 150, redis: { url: envs.REDIS_URL || 'redis://localhost:6379/', options: { diff --git a/test/middleware/template.js b/test/middleware/template.js index 276d23f4e9..1ba6b4296c 100644 --- a/test/middleware/template.js +++ b/test/middleware/template.js @@ -67,7 +67,7 @@ describe('template', () => { it(`long title`, async () => { const response = await request.get('/test/long'); const parsed = await parser.parseString(response.text); - expect(parsed.items[0].title.length).toBe(103); + expect(parsed.items[0].title.length).toBe(153); }); it(`enclosure`, async () => {