You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
To which I have added the assertion that demonstrates the issues; Up until this commit, staking's mock didn't even have a configuration to set the session length and it was always 1. The assert should prevent us from creating a bug here, but ideally the assumption should be removed and tests that use it should be revised. There should be tests that check staking's session rotation with session/era lengths of N and M, where both of them are greater than 1.
The text was updated successfully, but these errors were encountered:
kianenigma
added
I5-tests
Tests need fixing, improving or augmenting.
Z1-easy
Can be fixed primarily by duplicating and adapting code by an intermediate coder
labels
Mar 13, 2020
long term i'd really like to see a revamp of staking tests so that:
1- active_era and current_era are actually different.
2- sessions is actually queuing the receiving validators (same as all of our real chains).
Currently, almost all staking tests use this function
substrate/frame/staking/src/mock.rs
Lines 671 to 679 in 918e58e
To which I have added the assertion that demonstrates the issues; Up until this commit, staking's mock didn't even have a configuration to set the session length and it was always 1. The assert should prevent us from creating a bug here, but ideally the assumption should be removed and tests that use it should be revised. There should be tests that check staking's session rotation with session/era lengths of
N
andM
, where both of them are greater than 1.The text was updated successfully, but these errors were encountered: