Skip to content

Commit

Permalink
Fix integration test Dao related test, should set specific epoch leng…
Browse files Browse the repository at this point in the history
…th after genesis epoch
  • Loading branch information
eval-exec committed Feb 18, 2024
1 parent d44c7cd commit fb821bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/src/spec/dao.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ impl Spec for DaoPrepareOne {

fn modify_spec_toml(&self, spec_toml: &mut ChainSpec) {
spec_toml.params.genesis_epoch_length = Some(EPOCH_LENGTH);
spec_toml.params.epoch_duration_target = Some(EPOCH_LENGTH * 8);
spec_toml.params.permanent_difficulty_in_dummy = Some(true);
}

Expand Down Expand Up @@ -99,6 +100,7 @@ impl Spec for DaoPrepareMultiple {

fn modify_spec_toml(&self, spec_toml: &mut ChainSpec) {
spec_toml.params.genesis_epoch_length = Some(EPOCH_LENGTH);
spec_toml.params.epoch_duration_target = Some(EPOCH_LENGTH * 8);
spec_toml.params.permanent_difficulty_in_dummy = Some(true);
}

Expand Down Expand Up @@ -146,6 +148,7 @@ impl Spec for DaoWithdrawMultiple {

fn modify_spec_toml(&self, spec_toml: &mut ChainSpec) {
spec_toml.params.genesis_epoch_length = Some(EPOCH_LENGTH);
spec_toml.params.epoch_duration_target = Some(EPOCH_LENGTH * 8);
spec_toml.params.permanent_difficulty_in_dummy = Some(true);
}

Expand Down

0 comments on commit fb821bf

Please sign in to comment.