From fb821bf2f5a24a38baf3b5e6d5b1210001a3c9f9 Mon Sep 17 00:00:00 2001 From: Eval EXEC Date: Sun, 18 Feb 2024 18:55:23 +0800 Subject: [PATCH] Fix integration test Dao related test, should set specific epoch length after genesis epoch --- test/src/spec/dao.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/src/spec/dao.rs b/test/src/spec/dao.rs index df6a7f1d..a2717da5 100644 --- a/test/src/spec/dao.rs +++ b/test/src/spec/dao.rs @@ -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); } @@ -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); } @@ -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); }