add authorities_len for aura (#2040)

This commit is contained in:
yjh
2023-10-27 03:55:49 +08:00
committed by GitHub
parent 42707bc98b
commit 86228fa45e
2 changed files with 8 additions and 2 deletions
+2 -1
View File
@@ -29,7 +29,8 @@ use sp_runtime::{Digest, DigestItem};
fn initial_values() {
build_ext_and_execute_test(vec![0, 1, 2, 3], || {
assert_eq!(Aura::current_slot(), 0u64);
assert_eq!(Aura::authorities().len(), 4);
assert_eq!(Aura::authorities().len(), Aura::authorities_len());
assert_eq!(Aura::authorities_len(), 4);
});
}