63 lines
2.6 KiB
Markdown
63 lines
2.6 KiB
Markdown
# 测试结果
|
|
|
|
- 时间: 20260410-164555
|
|
- 范围: mirror
|
|
- 文件: test/app/controller/system.storage.receiving.test.js
|
|
- 状态: fail
|
|
- 退出码: 1
|
|
|
|
## 标准输出
|
|
|
|
```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 (3ms)
|
|
[egg-ts-helper] create typings\config\index.d.ts (12ms)
|
|
[egg-ts-helper] create typings\config\plugin.d.ts (1ms)
|
|
[egg-ts-helper] create typings\app\service\index.d.ts (4ms)
|
|
[egg-ts-helper] create typings\app\index.d.ts (1ms)
|
|
|
|
|
|
test/app/controller/system.storage.receiving.test.js
|
|
鉁?should query receiving list (1108ms)
|
|
鉁?should query receiving detail when list has records (1254ms)
|
|
1) should bind store to receiving and reject rebinding when owner already exists
|
|
鉁?should reject bindStore when receiving is cancelled (2100ms)
|
|
鉁?should bind and rebind system product for a receiving detail (2642ms)
|
|
鉁?should create and then batch cancel receiving order (1323ms)
|
|
鉁?should generate unique receiving numbers under concurrent create requests (1364ms)
|
|
鉁?should include same-day records when created_at uses daterange filter (1353ms)
|
|
鉁?should reject getReceivingDetail with invalid id (1035ms)
|
|
鉁?should reject create with invalid loading_method enum (1061ms)
|
|
鉁?should reject batchCancelReceiving with nonexistent ids (1044ms)
|
|
|
|
|
|
10 passing (15s)
|
|
1 failing
|
|
|
|
1) test/app/controller/system.storage.receiving.test.js
|
|
should bind store to receiving and reject rebinding when owner already exists:
|
|
TypeError: fetch failed
|
|
|
|
Caused by: Error: read ECONNRESET
|
|
at TCP.onStreamRead (node:internal/stream_base_commons:216:20)
|
|
|
|
|
|
|
|
[mochawesome] Report JSON saved to D:\wms\worktrees\deploy-20260409155126\node_modules\.mochawesome-reports\mochawesome.json
|
|
|
|
[mochawesome] Report HTML saved to D:\wms\worktrees\deploy-20260409155126\node_modules\.mochawesome-reports\mochawesome.html
|
|
```
|
|
|
|
## 标准错误
|
|
|
|
```text
|
|
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/controller/system.storage.receiving.test.js exit with code 1
|
|
at ChildProcess.<anonymous> (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
|
|
}
|
|
```
|