Skip to content

Commit a1d7488

Browse files
committed
fix unit test
1 parent c22a38f commit a1d7488

File tree

1 file changed

+3
-0
lines changed
  • pallets/subtensor/src/tests

1 file changed

+3
-0
lines changed

pallets/subtensor/src/tests/evm.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ fn test_associate_evm_key_success() {
3838
let modality: u16 = 2;
3939

4040
add_network(netuid, tempo, modality);
41+
System::set_block_number(EvmKeyAssociateRateLimit::get());
4142

4243
let coldkey = U256::from(1);
4344
let hotkey = U256::from(2);
@@ -86,6 +87,7 @@ fn test_associate_evm_key_different_block_number_success() {
8687
let modality: u16 = 2;
8788

8889
add_network(netuid, tempo, modality);
90+
System::set_block_number(EvmKeyAssociateRateLimit::get());
8991

9092
let coldkey = U256::from(1);
9193
let hotkey = U256::from(2);
@@ -204,6 +206,7 @@ fn test_associate_evm_key_using_wrong_hash_function() {
204206
let modality: u16 = 2;
205207

206208
add_network(netuid, tempo, modality);
209+
System::set_block_number(EvmKeyAssociateRateLimit::get());
207210

208211
let coldkey = U256::from(1);
209212
let hotkey = U256::from(2);

0 commit comments

Comments
 (0)