From 3109ccbff940544e52b5767bde4196dd7ebbf7f4 Mon Sep 17 00:00:00 2001 From: sunlei Date: Fri, 19 Jun 2026 12:26:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BB=B6=E9=95=BFBangDream=E6=9F=A5?= =?UTF-8?q?=E5=8D=A1=E6=A8=A1=E7=B3=8A=E5=88=97=E8=A1=A8=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/qqbot/plugins/bangdream/plugin.json | 2 +- .../bangdream/manifest/operation-manifest.spec.ts | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/modules/qqbot/plugins/bangdream/plugin.json b/src/modules/qqbot/plugins/bangdream/plugin.json index 34dc17e..5c3b020 100644 --- a/src/modules/qqbot/plugins/bangdream/plugin.json +++ b/src/modules/qqbot/plugins/bangdream/plugin.json @@ -117,7 +117,7 @@ "plugin.config.read", "plugin.storage.read" ], - "timeoutMs": 30000 + "timeoutMs": 120000 }, { "key": "bangdream.card.illustration", diff --git a/test/qqbot/plugins/bangdream/manifest/operation-manifest.spec.ts b/test/qqbot/plugins/bangdream/manifest/operation-manifest.spec.ts index 0f50602..00916cd 100644 --- a/test/qqbot/plugins/bangdream/manifest/operation-manifest.spec.ts +++ b/test/qqbot/plugins/bangdream/manifest/operation-manifest.spec.ts @@ -57,8 +57,13 @@ describe('BangDream operation manifest', () => { manifest.operations.map((operation) => [operation.key, operation]), ); - expect(byKey.get('bangdream.song.meta')?.timeoutMs).toBeGreaterThanOrEqual( - 120000, - ); + const heavyweightOperationKeys = [ + 'bangdream.song.meta', + 'bangdream.card.search', + ]; + + for (const operationKey of heavyweightOperationKeys) { + expect(byKey.get(operationKey)?.timeoutMs).toBeGreaterThanOrEqual(120000); + } }); });