Commit 3ee8daa
committed
test(subscription): snapshot/restore state consistency tests
Per ISSUES.md item 3:
- Remove duplicate test_init_rejects_fee_bps_over_10000 that blocked compilation
- Restore missing #[test] attribute on test_set_fee_bps_non_admin_rejected
- Enables two snapshot/restore tests that were already written but unreachable:
* test_subscription_state_after_snapshot_restore: saves state after
subscribe via env.to_snapshot(), restores with Env::from_snapshot(),
asserts plan, expiry, fan, and plan_count all match
* test_cancel_after_snapshot_restore: restores snapshot, calls cancel,
asserts is_subscriber returns false after cancel
- All 48 unit tests + 1 integration test pass1 parent 798bb24 commit 3ee8daa
1 file changed
Lines changed: 0 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1060 | 1060 | | |
1061 | 1061 | | |
1062 | 1062 | | |
1063 | | - | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
1067 | | - | |
1068 | | - | |
1069 | | - | |
1070 | | - | |
1071 | | - | |
1072 | | - | |
1073 | | - | |
1074 | | - | |
1075 | | - | |
1076 | 1063 | | |
1077 | 1064 | | |
1078 | 1065 | | |
| |||
0 commit comments