Cargo test fails at 0:20 JST
维护者通常 1 天内回复
评估
调研方向
失败出现在 tests/simple.rs 的第 16 行和第 133 行;首先运行 cargo test --test simple 并检查这些测试用例。将它们的预期时长与报告中的时区上下文进行比较,包括 JST/UTC 的区别。当预期行为得到确定且失败的测试能够稳定通过时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
I ran cargo test on the current repo and got two errors:
failures:
---- test_from_str_at_date_day stdout ----
thread 'test_from_str_at_date_day' panicked at 'assertion failed: `(left == right)`
left: `Duration { secs: 0, nanos: 0 }`,
right: `Duration { secs: 86400, nanos: 0 }`', tests/simple.rs:133:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- test_duration_parsing stdout ----
thread 'test_duration_parsing' panicked at 'assertion failed: `(left == right)`
left: `Duration { secs: 31449600, nanos: 0 }`,
right: `Duration { secs: 31536000, nanos: 0 }`', tests/simple.rs:16:5
failures:
test_duration_parsing
test_from_str_at_date_day
test result: FAILED. 4 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
error: test failed, to rerun pass `--test simple`
I did not get the errors before, so it might have to do with the my timezone. It looks like there might be an error or a different usage between JST and UTC.
- 主要语言
- Rust
- 星标
- 37
- 派生
- 44
- 平均合并
- 3 天 13 小时
- 30 天内合并 PR
- 10
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
uutils/parse_datetime 的其他 Issue
-
date input: unrecognized trailing tokens rejected (e.g. `8j`, `8 j`)可能重新可做 关联的 PR 已关闭且未合并。 未关闭bug good first issue
难度 3/5 1-2 天 新手友好度 65/100
uutils/parse_datetime#279 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 45/100
uutils/parse_datetime#240 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 52/100
uutils/parse_datetime#160 · 10 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 35/100
uutils/parse_datetime#82 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 20/100
uutils/parse_datetime#9 ·
维护者通常 1 天内回复
查看 uutils/parse_datetime 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
wormhole-foundation/wormhole#5062 ·
维护者通常 1 天内回复
-
RUSTSEC-2026-0348: Brotli certificate decompression can allocate up to 1 GiB before authentication未关闭
难度 2/5 1-3 小时 新手友好度 60/100
-
难度 1/5 1-3 小时 新手友好度 62/100
-
core: Amount::from_str panics on values above 21M BTC instead of returning an error可能已有人在做 @bhuvan-somisetty 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
crate: spate-s3
难度 2/5 半天 新手友好度 62/100
维护者通常 1 天内回复