cosmos / ibc-rs

Rust implementation of the Inter-Blockchain Communication (IBC) protocol.
Apache License 2.0
182 stars 73 forks source link

imp: ehnance ICS-07 CosmWasm tests using `Timestamp::now()` + add `test_cw_client_expiry` #1181

Closed Farhad-Shabani closed 2 months ago

Farhad-Shabani commented 2 months ago

Relevant to: #1176

Description

I meant to write a test to cover the scenario that #1176 aimed to address. However, I didn't get a chance to complete this task before my leave. Nonetheless, I managed to make some improvements, such as utilizing Timestamp::now(), which enables a more accurate simulation of real-world cases like client expiry. I also added test_cw_client_expiry. @rnbguy Please feel free to apply your review directly to this PR and proceed with merging it.


PR author checklist:

Reviewer checklist:

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 64.37%. Comparing base (80b8084) to head (8aba3ed).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1181 +/- ## ========================================== - Coverage 64.39% 64.37% -0.03% ========================================== Files 230 230 Lines 22053 22053 ========================================== - Hits 14201 14196 -5 - Misses 7852 7857 +5 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.