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

chore: enable std feature when mocks is enabled #926

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

mina86
Copy link
Contributor

@mina86 mina86 commented Oct 18, 2023

mocks feature results in use of Timestamp::now which is only
defined when std feature is enabled. Make std implied by mocks.


PR author checklist:

  • Added changelog entry, using unclog.
  • Added tests.
  • Linked to GitHub issue.
  • Updated code comments and documentation (e.g., docs/).
  • Tagged one reviewer who will be the one responsible for shepherding this PR.

Reviewer checklist:

  • Reviewed Files changed in the GitHub PR explorer.
  • Manually tested (in case integration/unit/mock tests are absent).

Copy link
Member

@Farhad-Shabani Farhad-Shabani left a comment

Choose a reason for hiding this comment

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

Nice catch. Thanks 👌
I've reopened this for no_std envs: #329

Just plz add a unclog, then we're good to merge.

`mocks` feature results in use of `Timestamp::now` which is only
defined when `std` feature is enabled.  Make `std` implied by `mocks`.
@mina86
Copy link
Contributor Author

mina86 commented Oct 18, 2023

Done.

@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (476937b) 67.56% compared to head (224eb00) 67.56%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #926   +/-   ##
=======================================
  Coverage   67.56%   67.56%           
=======================================
  Files         131      131           
  Lines       16283    16283           
=======================================
  Hits        11001    11001           
  Misses       5282     5282           

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

Copy link
Member

@Farhad-Shabani Farhad-Shabani left a comment

Choose a reason for hiding this comment

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

🙏🏻

@Farhad-Shabani Farhad-Shabani merged commit adcb0f7 into cosmos:main Oct 18, 2023
12 checks passed
@Farhad-Shabani Farhad-Shabani added this to the v0.47.0 milestone Oct 18, 2023
@mina86 mina86 deleted the b branch October 18, 2023 23:10
Farhad-Shabani pushed a commit that referenced this pull request Sep 9, 2024
`mocks` feature results in use of `Timestamp::now` which is only
defined when `std` feature is enabled.  Make `std` implied by `mocks`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📥 To Do
Development

Successfully merging this pull request may close these issues.

2 participants