Skip to content

Commit

Permalink
adjust unit test block weights
Browse files Browse the repository at this point in the history
  • Loading branch information
hansieodendaal committed Dec 13, 2024
1 parent 934eb4f commit d54da49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base_layer/core/tests/tests/block_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ async fn test_orphan_validator() {
let key_manager = create_memory_db_key_manager().unwrap();
let network = Network::Igor;
let consensus_constants = ConsensusConstantsBuilder::new(network)
.with_max_block_transaction_weight(334)
.with_max_block_transaction_weight(335)
.build();
let (genesis, outputs) = create_genesis_block_with_utxos(&[T, T, T], &consensus_constants, &key_manager).await;
let network = Network::LocalNet;
Expand Down Expand Up @@ -941,7 +941,7 @@ async fn test_block_sync_body_validator() {
matches!(
err,
ValidationError::BlockTooLarge { actual_weight, max_weight } if
actual_weight == 467 && max_weight == 400
actual_weight == 470 && max_weight == 400
),
"{}",
err
Expand Down

0 comments on commit d54da49

Please sign in to comment.