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

cardano-testnet: test value delegated to dreps in test of drep-stake-distribution #5961

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

smelc
Copy link
Contributor

@smelc smelc commented Aug 26, 2024

Description

IntersectMBO/cardano-cli#874 is changing the way the maximum supply in create-testnet-data is handled. As a consequence this affects cardano-testnet. This is why we want to check that the changes in values when we update CLI is as expected, and hence this PR.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. These may include:
  • Self-reviewed the diff

@smelc smelc force-pushed the smelc/check-query-drep-stake-distribution-value branch from 9547c48 to b88b24c Compare August 26, 2024 15:07
@smelc smelc marked this pull request as ready for review August 26, 2024 15:22
@smelc smelc requested a review from a team as a code owner August 26, 2024 15:22
-- TODO: we could check that the Coin amount below is the one reported
-- by query stake-address-info

forM_ drepStakeDistribution $ \(_drep, coin) -> coin H.=== Coin 300_000_000_000
Copy link
Contributor

Choose a reason for hiding this comment

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

Why no list lenght check?
Also small nitpick, because how hedgehog renders failure, it's a little more readable to put expected value on the left hand side.

Suggested change
forM_ drepStakeDistribution $ \(_drep, coin) -> coin H.=== Coin 300_000_000_000
forM_ drepStakeDistribution $ \(_drep, coin) -> Coin 300_000_000_000 H.=== coin

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@carbolymer> I added a list check and swapped the operands of H.=== 👍

@smelc smelc force-pushed the smelc/check-query-drep-stake-distribution-value branch from b88b24c to 21bc46f Compare September 3, 2024 11:13
@smelc smelc enabled auto-merge September 3, 2024 11:19
@smelc smelc added this pull request to the merge queue Sep 3, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Sep 3, 2024
@smelc smelc force-pushed the smelc/check-query-drep-stake-distribution-value branch from 21bc46f to 4deed3c Compare September 4, 2024 08:56
@smelc smelc enabled auto-merge September 4, 2024 08:57
@smelc smelc force-pushed the smelc/check-query-drep-stake-distribution-value branch from 4deed3c to de5e092 Compare September 4, 2024 14:09
@smelc smelc added this pull request to the merge queue Sep 4, 2024
Merged via the queue into master with commit 602d5ec Sep 4, 2024
22 of 23 checks passed
@smelc smelc deleted the smelc/check-query-drep-stake-distribution-value branch September 4, 2024 17:07
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.

2 participants