test: cover concurrent inbound hold

This commit is contained in:
2026-09-07 12:16:19 +08:00
parent c6b598daa7
commit 0aecc90d11
2 changed files with 32 additions and 0 deletions
@@ -32,6 +32,8 @@ test('入库扣货模块覆盖隔离、幂等、冲突、候选门禁和统一
assert.match(source, /上传本轮扣货关联凭证/)
assert.match(source, /尚未进入不可变历史的凭证禁止下载/)
assert.match(source, /进入不可变历史后的扣货凭证可下载且内容一致/)
assert.match(source, /同版本并发扣货恰好一个成功一个冲突/)
assert.match(source, /并发验收最终恢复未扣货且历史完整/)
assert.match(source, /summary\?\.holdFlag/)
assert.match(source, /summary\?\.currentHoldReason/)
assert.doesNotMatch(source, /\.holdCargo\b|\.holdReason\b|\bholdCargo\s*:|\bholdReason\s*:/)