Repository navigation
fix(test): 按路径组件拼接 Servlet 容器的期望路径 - #24
Merged
Merged
Conversation
Windows 上 join("servers/apache-tomcat-9.0.98") 会混用 / 和 \,而后端
返回的是原生分隔符,两条按字符串比较的断言因此在 v3.0.1 发布任务的
Windows 测试中失败。产品行为正确,只改测试。
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
关联 Issue / Linked issue
改动
v3.0.1 发布工作流的 Windows 测试有两条失败(
a_legacy_web_folder_…、eclipse_projects_only_…):测试用join("servers/apache-tomcat-9.0.98")和join("lib/jsp-api.jar")拼出期望路径,在 Windows 上会混用/和\;后端返回的是原生分隔符,两边按字符串比较时不相等。后端行为本身正确,这里只改测试,改为按路径组件拼接。其他用PathBuf比较的断言按组件比较,不受影响。验证
cargo test --workspace --locked通过🤖 Generated with Claude Code