This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Test case not working as expected: nominators_also_get_slashed
#5838
Closed
Description
The intent of
substrate/frame/staking/src/tests.rs
Line 536 in 268450a
is to make sure that nominators also get slashed but in the test, nominator_slash
is equal to 0 and the test is checking that a slash of 0 is applied which is equivalent of no slash at all.
In addition, the others
vector in the validator's exposure is an empty array which suggests that no nominators are going to be slashed.
I'm not sure if it's just some misconfigured test case or a bug in the code but in any case, I don't think the test case is verifying what it was meant to verify.