Skip to content

Commit

Permalink
update(test): added safety check for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
clostao committed Mar 7, 2024
1 parent 51a48ec commit b7a104a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pallets/validator-set/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ fn validator_misses_one_and_reconnects() {

let new_validators = <pallet::Validators<Test>>::get();

println!("{:?}", new_validators);

assert!(new_validators.contains(&authorities()[1].0));
// Safety check for ensuring that the validator id and index are correct
assert!(&authorities()[1].0.eq(&2u64));
assert!(EpochsMissed::<Test>::get(2) == U256::zero());
});
}
Expand Down

0 comments on commit b7a104a

Please sign in to comment.