Sfoglia il codice sorgente

contract/money/tests/integration: fixed failing test due to erroneous block height

skoupidi 2 anni fa
parent
commit
e53ea14531
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      src/contract/money/tests/integration.rs

+ 1 - 2
src/contract/money/tests/integration.rs

@@ -33,7 +33,7 @@ fn money_integration() -> Result<()> {
         let mut th = TestHarness::new(&["money".to_string()], true).await?;
 
         // Block height to verify against
-        let mut current_block_height = 1;
+        let current_block_height = 1;
 
         // Drop some money to Alice
         info!("[Alice] Building block proposal");
@@ -56,7 +56,6 @@ fn money_integration() -> Result<()> {
         assert!(alice_owncoin.note.value == expected_reward(current_block_height));
 
         th.assert_trees(&HOLDERS);
-        current_block_height += 1;
 
         // And some to Bob
         info!("[Bob] Building block proposal");