From d0eac00ceafcf70120a6282f2b579a42e63bc445 Mon Sep 17 00:00:00 2001 From: parazyd Date: Wed, 10 Jan 2024 15:46:09 +0100 Subject: [PATCH] contract/money: Fix slot generation in integration test --- src/contract/money/tests/integration.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/contract/money/tests/integration.rs b/src/contract/money/tests/integration.rs index cc24f9715..e4531bf78 100644 --- a/src/contract/money/tests/integration.rs +++ b/src/contract/money/tests/integration.rs @@ -28,16 +28,17 @@ fn money_integration() -> Result<()> { // Holders this test will use const HOLDERS: [Holder; 2] = [Holder::Alice, Holder::Bob]; - // Current verification slot - let mut verification_slot = 0; - // Initialize harness let mut th = TestHarness::new(&["money".to_string()]).await?; + // Current verification slot + let mut verification_slot = 1; + th.generate_slot(verification_slot).await?; + // Drop some money to Alice info!("[Alice] Building block proposal"); let (alice_proposal_tx, alice_proposal_params) = - th.pow_reward(&Holder::Alice, None, verification_slot + 1, None)?; + th.pow_reward(&Holder::Alice, None, verification_slot, None)?; for holder in HOLDERS { info!("[{holder:?}] Executing Alice's block proposal"); @@ -57,7 +58,7 @@ fn money_integration() -> Result<()> { // And some to Bob info!("[Bob] Building block proposal"); let (bob_proposal_tx, bob_proposal_params) = - th.pow_reward(&Holder::Bob, None, verification_slot + 1, None)?; + th.pow_reward(&Holder::Bob, None, verification_slot, None)?; for holder in HOLDERS { info!("[{holder:?}] Executing Alice's block proposal");