diff --git a/base_layer/core/tests/chain_storage_tests/chain_storage.rs b/base_layer/core/tests/chain_storage_tests/chain_storage.rs index cb24ea1746..1132e0e398 100644 --- a/base_layer/core/tests/chain_storage_tests/chain_storage.rs +++ b/base_layer/core/tests/chain_storage_tests/chain_storage.rs @@ -1161,7 +1161,6 @@ fn asset_unique_id() { } #[test] -#[ignore = "To be completed with pruned mode"] #[allow(clippy::identity_op)] fn store_and_retrieve_blocks_from_contents() { let network = Network::LocalNet; @@ -1180,7 +1179,7 @@ fn store_and_retrieve_blocks_from_contents() { generate_new_block(&mut db, &mut blocks, &mut outputs, schema, &consensus_manager).unwrap() ); let kernel_sig = blocks[1].block().body.kernels()[0].clone().excess_sig; - let utxo_commit = blocks[1].block().body.outputs()[0].clone().commitment; + let utxo_commit = blocks.last().unwrap().block().body.outputs()[0].clone().commitment; assert_eq!( db.fetch_block_with_kernel(kernel_sig) .unwrap() @@ -1196,7 +1195,7 @@ fn store_and_retrieve_blocks_from_contents() { .unwrap() .try_into_chain_block() .unwrap(), - blocks[1] + blocks[2] ); } diff --git a/base_layer/wallet/tests/transaction_service_tests/service.rs b/base_layer/wallet/tests/transaction_service_tests/service.rs index 4274871e9f..b7b48746fc 100644 --- a/base_layer/wallet/tests/transaction_service_tests/service.rs +++ b/base_layer/wallet/tests/transaction_service_tests/service.rs @@ -2110,7 +2110,6 @@ fn test_set_num_confirmations() { } #[test] -#[ignore = "test is flaky"] fn test_transaction_cancellation() { let factories = CryptoFactories::default(); let mut runtime = Runtime::new().unwrap(); @@ -2253,7 +2252,7 @@ fn test_transaction_cancellation() { let amount = MicroTari::from(10_000); builder .with_lock_height(0) - .with_fee_per_gram(MicroTari::from(177)) + .with_fee_per_gram(MicroTari::from(5)) .with_offset(PrivateKey::random(&mut OsRng)) .with_private_nonce(PrivateKey::random(&mut OsRng)) .with_amount(0, amount) @@ -2340,7 +2339,7 @@ fn test_transaction_cancellation() { let amount = MicroTari::from(10_000); builder .with_lock_height(0) - .with_fee_per_gram(MicroTari::from(177)) + .with_fee_per_gram(MicroTari::from(5)) .with_offset(PrivateKey::random(&mut OsRng)) .with_private_nonce(PrivateKey::random(&mut OsRng)) .with_amount(0, amount)