Repository navigation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[警告] 补充空批次回归测试
影响:此次修复依赖该提前返回,但 PR 未加入通知发送测试,现有 CI 仅运行 SQL 测试。若后续移除或绕过此判断,空批次再次触发 Go 接口 400 的问题不会被现有测试发现。
建议修复:提交 mock requests.post 的单元测试,断言 [] 不发请求且正常返回;同时覆盖非空批次恰好发送一次、请求体不变及错误响应仍抛出异常。