mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-22 18:39:55 +00:00
Fix code duplication in tests (#1575)
This commit is contained in:
1 parent
756347ab24
commit
d81a2e2fa9
6 files changed
+124
-452
No files matched your search
@@ -22,10 +22,7 @@ use crate::{
|
||||
use assert_matches::assert_matches;
|
||||
use keyring::Sr25519Keyring;
|
||||
use primitives::Hash;
|
||||
|
||||
fn validator_pubkeys(val_ids: &[Sr25519Keyring]) -> Vec<ValidatorId> {
|
||||
val_ids.iter().map(|v| v.public().into()).collect()
|
||||
}
|
||||
use test_helpers::validator_pubkeys;
|
||||
|
||||
#[test]
|
||||
fn tracker_earliest_block_number() {
|
||||
|
||||
Reference in new issue
Block a user