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
feat: implement mock_instant integration for get_current_timestamp
- Modified get_current_timestamp to use MockClock::time().as_secs() in test mode
- Added MockClock::set_time(Duration::from_secs(1761573860)) to three specific tests:
- test_get_price_no_older_than_with_random_id_reverts_with_price_unavailable
- test_get_price_no_older_than_where_update_younger_than_max_age_returns_price
- test_get_price_no_older_than_reverts_too_old
- Contract functionality unchanged (still uses block_timestamp in production)
- All specified tests pass with mocked timestamp
Co-Authored-By: [email protected] <[email protected]>
0 commit comments