Skip to content
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
@maxsam4

Description

@maxsam4

The intent of

fn nominators_also_get_slashed() {

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.

Metadata

Metadata

Assignees

Labels

I5-testsTests need fixing, improving or augmenting.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions