You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
project_registry: test_score_history_multiple_updates_ordered asserts strictly-increasing timestamps that can never differ #514
project_registry/src/test.rs's test_score_history_multiple_updates_ordered calls update_impact_score three times back-to-back with no ledger-time advance in between, then asserts the resulting ScoreHistoryEntry.timestamp values are strictly increasing:
setup() (project_registry/src/test.rs:18-26) builds env via Env::default() and never initializes env.ledger().timestamp, and nothing in this test advances it between the three update_impact_score calls. Every history entry is therefore recorded with the identical timestamp, so < (strict) fails: assertion failed: history.get(0).unwrap().timestamp < history.get(1).unwrap().timestamp.
Why it matters
This test has never passed as written — once the workspace's compile-blocking issues (filed separately) are fixed and cargo test -p project-registry can actually run, this is one of two failures in that crate's test suite. It's meant to lock in that get_score_history preserves chronological order, but as written it can't prove anything about timestamps specifically (only that the credit_quality/entry order matches insertion order, which the separate assertions above it already cover) — it would fail on any correct implementation given three same-ledger calls.
Suggested fix
Advance the ledger timestamp between each update_impact_score call, matching the pattern used elsewhere in this codebase for time-dependent assertions:
More generally, setup() initializing a realistic non-zero starting timestamp (as suggested in the sibling issue about investment_vault's setup()) would make this class of mistake harder to write in the first place, though it wouldn't fully fix this particular test since the timestamp still wouldn't change between the three calls without an explicit advance.
Congratulations, @rhemy-arc! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.
🧑💻 @rhemy-arc: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
Warning
When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
😎 @rhemy-arc: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.
Activity
Vivianndev commentedon Sep 30, 2026
@Vivianndev has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Vivianndev to this issue.
Isaacayomide28 commentedon Sep 30, 2026
@Isaacayomide28 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Isaacayomide28 to this issue.
rhemy-arc commentedon Sep 30, 2026
@rhemy-arc has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @rhemy-arc to this issue.
bluegate916 commentedon Sep 30, 2026
@bluegate916 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @bluegate916 to this issue.
madisonsc52-del commentedon Sep 30, 2026
@madisonsc52-del has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @madisonsc52-del to this issue.
Stanley-Owoh commentedon Sep 30, 2026
@Stanley-Owoh has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Stanley-Owoh to this issue.
drips-wave commentedon Sep 30, 2026
Congratulations, @rhemy-arc! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.
🧑💻 @rhemy-arc: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
Warning
When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
drips-wave commentedon Sep 30, 2026
This issue has been completed by @rhemy-arc as part of the Stellar Wave Program's 9th Wave 🥳
😎 @rhemy-arc: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.