Commit 1ab6d20
committed
fix(drive): restore Ok(None) retry and strengthen test assertions
The previous commit incorrectly restricted retry to Err(_) only,
but Ok(None) from the non-historical path is a legitimate trigger
for historical retry — it means the contract exists in the historical
path, not that it's absent. Restoring the _ catch-all preserves the
original fix from a7fec8b.
Test assertions now require contracts to be returned (not accept None)
for cases where the contract definitely exists, eliminating tautological
acceptance paths.1 parent 73c264e commit 1ab6d20
3 files changed
Lines changed: 9 additions & 14 deletions
File tree
- packages/rs-drive
- src/verify/contract
- verify_contract_return_serialization/v0
- verify_contract/v0
- tests
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 59 | + | |
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
| |||
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 61 | + | |
65 | 62 | | |
66 | 63 | | |
67 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4744 | 4744 | | |
4745 | 4745 | | |
4746 | 4746 | | |
4747 | | - | |
4748 | | - | |
4749 | | - | |
| 4747 | + | |
| 4748 | + | |
| 4749 | + | |
| 4750 | + | |
4750 | 4751 | | |
4751 | 4752 | | |
4752 | 4753 | | |
| |||
4806 | 4807 | | |
4807 | 4808 | | |
4808 | 4809 | | |
4809 | | - | |
4810 | | - | |
4811 | | - | |
| 4810 | + | |
| 4811 | + | |
| 4812 | + | |
4812 | 4813 | | |
4813 | 4814 | | |
4814 | 4815 | | |
| |||
0 commit comments