Skip to content

Commit

Permalink
add test for buffered receipts targeting a splitting shard
Browse files Browse the repository at this point in the history
  • Loading branch information
Trisfald committed Nov 21, 2024
1 parent b5422cf commit e46a009
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions integration-tests/src/test_loop/tests/resharding_v3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -708,3 +708,25 @@ fn test_resharding_v3_split_parent_buffered_receipts() {
));
test_resharding_v3_base(params);
}

#[test]
// TODO(resharding): fix nearcore and replace the line below with #[cfg_attr(not(feature = "test_features"), ignore)]
#[ignore]
fn test_resharding_v3_buffered_receipts_towards_splitted_shard() {
let receiver_account: AccountId = "account4".parse().unwrap();
let account_1_in_stable_shard: AccountId = "account1".parse().unwrap();
let account_2_in_stable_shard: AccountId = "account2".parse().unwrap();
let params = TestReshardingParameters::new()
.deploy_test_contract(receiver_account.clone())
.limit_outgoing_gas()
.add_loop_action(call_burn_gas_contract(
vec![account_1_in_stable_shard.clone(), account_2_in_stable_shard],
receiver_account,
5 * TGAS,
))
.add_loop_action(check_receipts_presence_at_resharding_block(
account_1_in_stable_shard,
ReceiptKind::Buffered,
));
test_resharding_v3_base(params);
}

0 comments on commit e46a009

Please sign in to comment.