Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add tests for batch tx with acks and timeouts #208

Conversation

gjermundgaraba
Copy link
Contributor

Description

closes: #201
closes: #202


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work.
  • Wrote unit and integration tests.
  • Added relevant natspec and godoc comments.
  • Provide a conventional commit message to follow the repository standards.
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Review SonarCloud Report in the comment section below once CI passes.

@gjermundgaraba gjermundgaraba linked an issue Jan 9, 2025 that may be closed by this pull request
Copy link

codecov bot commented Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.66%. Comparing base (f8ed823) to head (394c9fe).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #208   +/-   ##
=======================================
  Coverage   98.66%   98.66%           
=======================================
  Files          11       11           
  Lines         526      526           
=======================================
  Hits          519      519           
  Misses          7        7           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gjermundgaraba gjermundgaraba marked this pull request as ready for review January 9, 2025 21:07
@gjermundgaraba gjermundgaraba requested a review from srdtrk as a code owner January 9, 2025 21:07
Copy link
Member

@srdtrk srdtrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm.

@@ -54,8 +56,10 @@ pub fn timestamp_at_height(
let eth_consensus_state =
get_eth_consensus_state(deps.storage, timestamp_at_height_msg.height.revision_height)?;

let nano_timestamp = eth_consensus_state.timestamp.mul(1_000_000_000); // ibc-go expects nanoseconds
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we use .mul here but * 1_000_000_000 elsewhere. I think we should stick with * 1_000_000_000 for consistency

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've addressed this. Lmk if you see an issue

@srdtrk srdtrk merged commit c828096 into main Jan 10, 2025
64 checks passed
@srdtrk srdtrk deleted the gjermund/201-add-tests-for-batch-tx-and-ack-relaying-from-eth-to-cosmos branch January 10, 2025 05:53
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 timeout tests for relaying from eth to Cosmos Add tests for batch tx and ack relaying from eth to cosmos
2 participants