Skip to content

test(#617): add deterministic event ordering test for resolve_market#694

Merged
greatest0fallt1me merged 1 commit into
Predictify-org:masterfrom
Ebenezer199914:feature/617-deterministic-event-ordering-test
Jun 27, 2026
Merged

test(#617): add deterministic event ordering test for resolve_market#694
greatest0fallt1me merged 1 commit into
Predictify-org:masterfrom
Ebenezer199914:feature/617-deterministic-event-ordering-test

Conversation

@Ebenezer199914

Copy link
Copy Markdown
Contributor

Closes #617. Adds deterministic event ordering test for resolve_market (mkt_res -> st_chng -> idx_transition) and fixes CI compile errors (missing max_deviation_bps args).

…esolve_market

- Add resolution_event_ordering_tests.rs verifying that resolve_market
  emits events in the exact sequence: mkt_res → st_chng → idx_transition
- Add negative test: no resolution events emitted when resolution fails
  early (missing oracle result)
- Fix CI errors in require_auth_coverage_tests.rs: add missing
  max_deviation_bps argument to 4 calls of set_oracle_val_cfg_global
  and set_oracle_val_cfg_event
- Register new test module in lib.rs under #[cfg(test)]

Closes Predictify-org#617
@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@Ebenezer199914 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@greatest0fallt1me

Copy link
Copy Markdown
Contributor

Merged via direct push to master (admin)

@greatest0fallt1me greatest0fallt1me merged commit 4daaad3 into Predictify-org:master Jun 27, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add deterministic event ordering test for emit sequence in resolve_market

2 participants