Skip to content

Add minor improvements to chill_other test#7553

Merged
rockbmb merged 8 commits intomasterfrom
pallet-staking-chill-other-test
Feb 14, 2025
Merged

Add minor improvements to chill_other test#7553
rockbmb merged 8 commits intomasterfrom
pallet-staking-chill-other-test

Conversation

@rockbmb
Copy link
Copy Markdown
Contributor

@rockbmb rockbmb commented Feb 12, 2025

Description

open-web3-stack/polkadot-ecosystem-tests#174 showed the test for the pallet_staking::chill_other extrinsic could be more exhaustive.

This PR adds those checks, and also a few more to another test related to chill_other, pallet_staking::tests::change_of_absolute_max_nominations.

Integration

N/A

Review Notes

N/A

There was a missing switch in a `set_staking_configs` call, which
wasn't quite testing the right thing
@rockbmb rockbmb added T2-pallets This PR/Issue is related to a particular pallet. T10-tests This PR/Issue is related to tests. labels Feb 12, 2025
@rockbmb rockbmb self-assigned this Feb 12, 2025
@rockbmb rockbmb marked this pull request as ready for review February 12, 2025 18:23
@rockbmb rockbmb requested a review from Ank4n February 12, 2025 18:26
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json

title: Add more checks to `chill_other` tests
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: An alternative would be t0-silent for tests, however I like the PR doc description 🙏

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

By t0-silent, you are referring to a PR tag on GitHub, correct?

@bkchr bkchr added R0-no-crate-publish-required The change does not require any crates to be re-published. and removed T2-pallets This PR/Issue is related to a particular pallet. T10-tests This PR/Issue is related to tests. labels Feb 14, 2025
@bkchr bkchr enabled auto-merge February 14, 2025 17:37
@bkchr bkchr added this pull request to the merge queue Feb 14, 2025
auto-merge was automatically disabled February 14, 2025 18:49

Pull Request is not mergeable

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 14, 2025
@rockbmb rockbmb added this pull request to the merge queue Feb 14, 2025
Merged via the queue into master with commit c1915af Feb 14, 2025
165 of 167 checks passed
@rockbmb rockbmb deleted the pallet-staking-chill-other-test branch February 14, 2025 20:57
clangenb pushed a commit to clangenb/polkadot-sdk that referenced this pull request Feb 19, 2025
# Description

open-web3-stack/polkadot-ecosystem-tests#174
showed the test for the `pallet_staking::chill_other` extrinsic could be
more exhaustive.

This PR adds those checks, and also a few more to another test related
to `chill_other`,
`pallet_staking::tests::change_of_absolute_max_nominations`.

## Integration

N/A

## Review Notes

N/A

---------

Co-authored-by: Bastian Köcher <git@kchr.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

R0-no-crate-publish-required The change does not require any crates to be re-published.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants