Skip to content

Commit

Permalink
Revert "yield_resume: add more integration tests (#11287)"
Browse files Browse the repository at this point in the history
This reverts commit c637180.
  • Loading branch information
posvyatokum committed May 15, 2024
1 parent 06c33a2 commit d355e88
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 416 deletions.
6 changes: 1 addition & 5 deletions core/parameters/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ use near_primitives_core::version::PROTOCOL_VERSION;

use super::parameter_table::InvalidConfigError;

// Lowered promise yield timeout length used in integration tests.
// The resharding tests for yield timeouts take too long to run otherwise.
pub const TEST_CONFIG_YIELD_TIMEOUT_LENGTH: u64 = 10;

/// The structure that holds the parameters of the runtime, mostly economics.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct RuntimeConfig {
Expand Down Expand Up @@ -48,7 +44,7 @@ impl RuntimeConfig {
let mut wasm_config =
crate::vm::Config::clone(&config_store.get_config(PROTOCOL_VERSION).wasm_config);
// Lower the yield timeout length so that we can observe timeouts in integration tests.
wasm_config.limit_config.yield_timeout_length_in_blocks = TEST_CONFIG_YIELD_TIMEOUT_LENGTH;
wasm_config.limit_config.yield_timeout_length_in_blocks = 10;

RuntimeConfig {
fees: RuntimeFeesConfig::test(),
Expand Down
1 change: 0 additions & 1 deletion integration-tests/src/tests/client/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ mod restrict_tla;
mod simple_test_loop_example;
mod stateless_validation;
mod wallet_contract;
mod yield_timeouts;
mod zero_balance_account;

0 comments on commit d355e88

Please sign in to comment.