Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Fix up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drewstone committed Dec 11, 2023
1 parent 6429ba9 commit 9ebfa39
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
18 changes: 3 additions & 15 deletions node/src/chain_spec.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
use node_template_runtime::{
opaque::SessionKeys,
AccountId,
Balance,
BalancesConfig,
Eth2ClientConfig,
IndicesConfig,
MaxNominations,
RuntimeGenesisConfig,
SessionConfig,
Signature,
StakingConfig,
SudoConfig,
SystemConfig,
DOLLARS,
WASM_BINARY,
opaque::SessionKeys, AccountId, Balance, BalancesConfig, Eth2ClientConfig, IndicesConfig,
MaxNominations, RuntimeGenesisConfig, SessionConfig, Signature, StakingConfig, SudoConfig,
SystemConfig, DOLLARS, WASM_BINARY,
};
use pallet_staking::StakerStatus;
use sc_service::ChainType;
Expand Down
18 changes: 18 additions & 0 deletions pallets/eth2-light-client/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ pub fn get_test_context(
}

mod generic_tests {
use super::*;
use crate::{
mock::new_test_ext,
tests::{get_test_context, GOERLI_CHAIN},
Error, Paused,
};
use bitvec::{bitarr, order::Lsb0};
use consensus::{EPOCHS_PER_SYNC_COMMITTEE_PERIOD, SLOTS_PER_EPOCH};
use eth_types::{H256, U256};
use frame_support::assert_err;
use hex::FromHex;
use tree_hash::TreeHash;

#[test]
pub fn test_header_root() {
Expand Down Expand Up @@ -477,6 +489,12 @@ mod generic_tests {
}

mod mainnet_tests {
use super::*;
use crate::{
tests::{new_test_ext, ALICE, MAINNET_CHAIN},
Error,
};
use frame_support::assert_err;

#[test]
pub fn test_panic_on_init_in_trustless_mode_without_bls_on_mainnet() {
Expand Down

0 comments on commit 9ebfa39

Please sign in to comment.