Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RomarQ committed May 27, 2024
1 parent 424dd19 commit aec5963
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
20 changes: 10 additions & 10 deletions runtime/moonbase/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,7 @@ fn xcm_asset_erc20_precompiles_transfer() {
value: { 400 * UNIT }.into(),
},
)
.expect_cost(24383)
.expect_cost(24342)
.expect_log(log3(
asset_precompile_address,
SELECTOR_LOG_TRANSFER,
Expand Down Expand Up @@ -1421,7 +1421,7 @@ fn xcm_asset_erc20_precompiles_approve() {
value: { 400 * UNIT }.into(),
},
)
.expect_cost(14429)
.expect_cost(14424)
.expect_log(log3(
asset_precompile_address,
SELECTOR_LOG_APPROVAL,
Expand All @@ -1442,7 +1442,7 @@ fn xcm_asset_erc20_precompiles_approve() {
value: { 400 * UNIT }.into(),
},
)
.expect_cost(29739)
.expect_cost(29686)
.expect_log(log3(
asset_precompile_address,
SELECTOR_LOG_TRANSFER,
Expand Down Expand Up @@ -2161,7 +2161,7 @@ fn transact_through_signed_precompile_works_v1() {
call: bytes.into(),
},
)
.expect_cost(17567)
.expect_cost(17555)
.expect_no_logs()
.execute_returns(());
});
Expand Down Expand Up @@ -2201,7 +2201,7 @@ fn transact_through_signed_precompile_works_v2() {
overall_weight: total_weight,
},
)
.expect_cost(17567)
.expect_cost(17555)
.expect_no_logs()
.execute_returns(());
});
Expand Down Expand Up @@ -2283,7 +2283,7 @@ fn author_mapping_precompile_associate_update_and_clear() {
nimbus_id: [1u8; 32].into(),
},
)
.expect_cost(15137)
.expect_cost(15126)
.expect_no_logs()
.execute_returns(());

Expand All @@ -2305,7 +2305,7 @@ fn author_mapping_precompile_associate_update_and_clear() {
new_nimbus_id: [2u8; 32].into(),
},
)
.expect_cost(14718)
.expect_cost(14728)
.expect_no_logs()
.execute_returns(());

Expand All @@ -2326,7 +2326,7 @@ fn author_mapping_precompile_associate_update_and_clear() {
nimbus_id: [2u8; 32].into(),
},
)
.expect_cost(15180)
.expect_cost(15189)
.expect_no_logs()
.execute_returns(());

Expand Down Expand Up @@ -2369,7 +2369,7 @@ fn author_mapping_register_and_set_keys() {
.into(),
},
)
.expect_cost(16266)
.expect_cost(16262)
.expect_no_logs()
.execute_returns(());

Expand All @@ -2394,7 +2394,7 @@ fn author_mapping_register_and_set_keys() {
.into(),
},
)
.expect_cost(16266)
.expect_cost(16262)
.expect_no_logs()
.execute_returns(());

Expand Down
8 changes: 4 additions & 4 deletions runtime/moonbeam/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1771,7 +1771,7 @@ fn xcm_asset_erc20_precompiles_transfer() {
value: { 400 * GLMR }.into(),
},
)
.expect_cost(24383)
.expect_cost(24342)
.expect_log(log3(
asset_precompile_address,
SELECTOR_LOG_TRANSFER,
Expand Down Expand Up @@ -1836,7 +1836,7 @@ fn xcm_asset_erc20_precompiles_approve() {
value: { 400 * GLMR }.into(),
},
)
.expect_cost(14429)
.expect_cost(14424)
.expect_log(log3(
asset_precompile_address,
SELECTOR_LOG_APPROVAL,
Expand All @@ -1857,7 +1857,7 @@ fn xcm_asset_erc20_precompiles_approve() {
value: { 400 * GLMR }.into(),
},
)
.expect_cost(29739)
.expect_cost(29686)
.expect_log(log3(
asset_precompile_address,
SELECTOR_LOG_TRANSFER,
Expand Down Expand Up @@ -2139,7 +2139,7 @@ fn transact_through_signed_precompile_works_v2() {
overall_weight: total_weight,
},
)
.expect_cost(17567)
.expect_cost(17555)
.expect_no_logs()
.execute_returns(());
});
Expand Down
8 changes: 4 additions & 4 deletions runtime/moonriver/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1754,7 +1754,7 @@ fn xcm_asset_erc20_precompiles_transfer() {
value: { 400 * MOVR }.into(),
},
)
.expect_cost(24383)
.expect_cost(24342)
.expect_log(log3(
asset_precompile_address,
SELECTOR_LOG_TRANSFER,
Expand Down Expand Up @@ -1818,7 +1818,7 @@ fn xcm_asset_erc20_precompiles_approve() {
value: { 400 * MOVR }.into(),
},
)
.expect_cost(14429)
.expect_cost(14424)
.expect_log(log3(
asset_precompile_address,
SELECTOR_LOG_APPROVAL,
Expand All @@ -1839,7 +1839,7 @@ fn xcm_asset_erc20_precompiles_approve() {
value: { 400 * MOVR }.into(),
},
)
.expect_cost(29739)
.expect_cost(29686)
.expect_log(log3(
asset_precompile_address,
SELECTOR_LOG_TRANSFER,
Expand Down Expand Up @@ -2141,7 +2141,7 @@ fn transact_through_signed_precompile_works_v2() {
overall_weight: total_weight,
},
)
.expect_cost(17567)
.expect_cost(17555)
.expect_no_logs()
.execute_returns(());
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describeSuite({
expect(
weights.mandatory.proofSize.toNumber(),
"proofSize is too high, this might lead to empty block"
).to.be.at.most(2_612_426);
).to.be.at.most(2_612_479);

// block could support ~500ms refTime but we consider it safer to error when reaching
// over 210ms for the payout. After Async Backing a block could support 2000ms.
Expand Down

0 comments on commit aec5963

Please sign in to comment.