Skip to content

Commit

Permalink
fix: enable test_function_limit_change (#10538)
Browse files Browse the repository at this point in the history
It looks like this test now works with stateless validation, so let's
enable it again.
I didn't need to make any changes to the test, maybe something was fixed
in the meantime.

Refs: #10506
  • Loading branch information
jancionear authored Jan 31, 2024
1 parent c11ad4a commit 3af45f1
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ use near_primitives::errors::{
};
use near_primitives::version::ProtocolFeature;
use near_primitives::views::FinalExecutionStatus;
use near_primitives_core::checked_feature;
use near_primitives_core::version::PROTOCOL_VERSION;
use nearcore::config::GenesisExt;
use nearcore::test_utils::TestEnvNightshadeSetupExt;

Expand Down Expand Up @@ -77,11 +75,6 @@ fn verify_contract_limits_upgrade(
// Check that we can't call a contract exceeding functions number limit after upgrade.
#[test]
fn test_function_limit_change() {
// TODO(#10506): Fix test to handle stateless validation
if checked_feature!("stable", ChunkValidation, PROTOCOL_VERSION) {
return;
}

verify_contract_limits_upgrade(
ProtocolFeature::LimitContractFunctionsNumber,
100_000,
Expand Down

0 comments on commit 3af45f1

Please sign in to comment.