Skip to content

Commit

Permalink
Merge #2366
Browse files Browse the repository at this point in the history
2366: Fix genesis timestamp in test. r=damip a=AurelienFT

Fix #2301

Co-authored-by: AurelienFT <[email protected]>
  • Loading branch information
bors[bot] and AurelienFT authored Mar 3, 2022
2 parents 8e40158 + d58c0bf commit c536df1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion massa-consensus-worker/src/tests/scenario_block_creation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c536df1

Please sign in to comment.