Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(resharding): MissingTrieValue in tests #12677

Merged
merged 2 commits into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions integration-tests/src/test_loop/tests/congestion_control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ fn do_deploy_contract(
let code = near_test_contracts::rs_contract().to_vec();
let tx = deploy_contract(test_loop, node_datas, rpc_id, contract_id, code, 1);
test_loop.run_for(Duration::seconds(5));
check_txs(&*test_loop, node_datas, rpc_id, &[tx]);
check_txs(&test_loop.data, node_datas, rpc_id, &[tx]);
}

/// Call the contract from all accounts and wait until the transactions are executed.
Expand Down Expand Up @@ -144,7 +144,7 @@ fn do_call_contract(
txs.push(tx);
}
test_loop.run_for(Duration::seconds(20));
check_txs(&*test_loop, node_datas, &rpc_id, &txs);
check_txs(&test_loop.data, node_datas, &rpc_id, &txs);
}

/// The condition that can be used for the test loop to wait until the chain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ fn deploy_contracts(
contracts.push(contract);
}
env.test_loop.run_for(Duration::seconds(2));
check_txs(&env.test_loop, &env.datas, rpc_id, &txs);
check_txs(&env.test_loop.data, &env.datas, rpc_id, &txs);
contracts
}

Expand Down Expand Up @@ -175,5 +175,5 @@ fn call_contracts(
}
}
env.test_loop.run_for(Duration::seconds(2));
check_txs(&env.test_loop, &env.datas, &rpc_id, &txs);
check_txs(&env.test_loop.data, &env.datas, &rpc_id, &txs);
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn do_call_contract(env: &mut TestLoopEnv, rpc_id: &AccountId, contract_id: &Acc
nonce,
);
env.test_loop.run_for(Duration::seconds(5));
check_txs(&env.test_loop, &env.datas, rpc_id, &[tx]);
check_txs(&env.test_loop.data, &env.datas, rpc_id, &[tx]);
}

/// Tracks latest block heights and checks that all chunks are produced.
Expand Down
10 changes: 5 additions & 5 deletions integration-tests/src/test_loop/tests/max_receipt_size.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn slow_test_max_receipt_size() {
&account0,
vec![0u8; 2_000_000],
account0_signer,
get_shared_block_hash(&env.datas, &env.test_loop),
get_shared_block_hash(&env.datas, &env.test_loop.data),
);
let large_tx_exec_res =
execute_tx(&mut env.test_loop, &rpc_id, large_tx, &env.datas, Duration::seconds(5));
Expand All @@ -43,7 +43,7 @@ fn slow_test_max_receipt_size() {
&account0,
near_test_contracts::rs_contract().into(),
&account0_signer,
get_shared_block_hash(&env.datas, &env.test_loop),
get_shared_block_hash(&env.datas, &env.test_loop.data),
);
run_tx(&mut env.test_loop, &rpc_id, deploy_contract_tx, &env.datas, Duration::seconds(5));

Expand All @@ -59,7 +59,7 @@ fn slow_test_max_receipt_size() {
"generate_large_receipt".into(),
r#"{"account_id": "account0", "method_name": "noop", "total_args_size": 3000000}"#.into(),
300 * TGAS,
get_shared_block_hash(&env.datas, &env.test_loop),
get_shared_block_hash(&env.datas, &env.test_loop.data),
);
run_tx(&mut env.test_loop, &rpc_id, large_receipt_tx, &env.datas, Duration::seconds(5));

Expand All @@ -73,7 +73,7 @@ fn slow_test_max_receipt_size() {
"generate_large_receipt".into(),
r#"{"account_id": "account0", "method_name": "noop", "total_args_size": 5000000}"#.into(),
300 * TGAS,
get_shared_block_hash(&env.datas, &env.test_loop),
get_shared_block_hash(&env.datas, &env.test_loop.data),
);
let too_large_receipt_tx_exec_res = execute_tx(
&mut env.test_loop,
Expand Down Expand Up @@ -115,7 +115,7 @@ fn slow_test_max_receipt_size() {
"sum_n".into(),
5_u64.to_le_bytes().to_vec(),
300 * TGAS,
get_shared_block_hash(&env.datas, &env.test_loop),
get_shared_block_hash(&env.datas, &env.test_loop.data),
);
let sum_4_res = run_tx(&mut env.test_loop, &rpc_id, sum_4_tx, &env.datas, Duration::seconds(5));
assert_eq!(sum_4_res, 10u64.to_le_bytes().to_vec());
Expand Down
Loading
Loading