# 测试结果 - 状态: SKIP - 分类: 主区 - 文件: app/service/systems/notice.test.js - 源: main - 测试类型: 自动化文件级执行 - 测试账号: liufumingren - 测试仓 ID: 100000 - 测试货主 ID: 1000000 - 开始时间: 2026-04-10T13:05:27.947Z - 结束时间: 2026-04-10T13:05:29.542Z - 耗时(秒): 2 - 退出码: 1 - 说明: 环境/数据缺失: timeout ## 执行输出摘录 ```text [egg-ts-helper] create typings\app\extend\application.d.ts (2ms) [egg-ts-helper] create typings\app\controller\index.d.ts (1ms) [egg-ts-helper] create typings\app\model\index.d.ts (2ms) [egg-ts-helper] create typings\config\index.d.ts (12ms) [egg-ts-helper] create typings\config\plugin.d.ts (0ms) [egg-ts-helper] create typings\app\service\index.d.ts (4ms) [egg-ts-helper] create typings\app\index.d.ts (1ms) test/app/service/systems/notice.test.js 1) should normalize payload and send only matching webhooks ✔ should enrich payload with store info from cache before querying database ✔ should load store info from database and cache it when cache is empty ✔ should send to both warehouse and owner webhooks when events match or are set to all ✔ should only send up to the configured webhook limit ✔ should require url for image or file message ✔ should require warehouseId but allow empty ownerId ✔ should retry failed webhooks three times and persist final failures ✔ should reject sending unregistered event ✔ should reject dotted or numeric-leading event names ✔ should send wecom webhook as enterprise wechat direct message ✔ should expose available webhook events and reject unsupported ones 11 passing (16ms) 1 failing 1) test/app/service/systems/notice.test.js should normalize payload and send only matching webhooks: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 100000 - 1000000 + expected - actual -100000 +1000000 at Object.findAll (test\app\service\systems\notice.test.js:34:20) at D:\wms\app\service\systems\notice\index.js:796:43 at Array.map () at NoticeService.findMatchedWebhooks (app\service\systems\notice\index.js:786:62) at NoticeService.send (app\service\systems\notice\index.js:826:33) at async Context. (test\app\service\systems\notice.test.js:55:20) [mochawesome] Report JSON saved to D:\wms\node_modules\.mochawesome-reports\mochawesome.json [mochawesome] Report HTML saved to D:\wms\node_modules\.mochawesome-reports\mochawesome.html ForkError: D:\wms\node_modules\mocha\bin\_mocha --exit --timeout=60000 --reporter=D:\wms\node_modules\mochawesome-with-mocha\src\mochawesome.js --reporter-options=reportDir=node_modules/.mochawesome-reports --require=D:\wms\node_modules\egg-mock\register.js test/app/service/systems/notice.test.js exit with code 1 at ChildProcess. (D:\wms\node_modules\egg-bin\dist\cmd\base.js:98:33) at Object.onceWrapper (node:events:623:26) at ChildProcess.emit (node:events:508:28) at ChildProcess._handle.onexit (node:internal/child_process:294:12) { code: 1 } ``` ## 执行错误 - 错误对象: (无)