diff --git a/massa-consensus-worker/src/tests/scenario_block_creation.rs b/massa-consensus-worker/src/tests/scenario_block_creation.rs index f017be5dfaf..a3b06f4cfe2 100644 --- a/massa-consensus-worker/src/tests/scenario_block_creation.rs +++ b/massa-consensus-worker/src/tests/scenario_block_creation.rs @@ -35,7 +35,9 @@ async fn test_genesis_block_creation() { LedgerData::new(Amount::from_str("1000").unwrap()), ); let mut cfg = ConsensusConfig { - genesis_timestamp: MassaTime::from_str("1633301290000").unwrap(), + genesis_timestamp: MassaTime::now() + .unwrap() + .saturating_sub(MassaTime::from(30000)), ..ConsensusConfig::default_with_staking_keys_and_ledger(&[priv_1, priv_2], &ledger) }; // init roll count