Skip to content
Permalink
Browse files

Fix import for integration-test feature

Signed-off-by: dkijania <dariusz.kijania@iohk.io>
  • Loading branch information...
dkijania committed May 16, 2019
1 parent fa636d1 commit e62dc1242eeff8156f87548bb4fa680a93c8e51d
Showing with 2 additions and 14 deletions.
  1. +1 −6 tests/jcli_transaction/e2e_transaction_tests.rs
  2. +1 −8 tests/jcli_transaction/input_output_tests.rs
@@ -1,12 +1,11 @@
#![allow(dead_code)]
#![cfg(feature = "integration-test")]

use common::configuration::genesis_model::Fund;
use common::jcli_wrapper;
use common::jcli_wrapper::jcli_transaction_wrapper::JCLITransactionWrapper;
use common::startup;

#[test]
#[cfg(feature = "integration-test")]
pub fn test_utxo_transation_with_more_than_one_witness_per_input_is_rejected() {
let sender = startup::create_new_utxo_address();
let reciever = startup::create_new_utxo_address();
@@ -37,7 +36,6 @@ pub fn test_utxo_transation_with_more_than_one_witness_per_input_is_rejected() {
}

#[test]
#[cfg(feature = "integration-test")]
pub fn test_two_correct_utxo_to_utxo_transactions_are_accepted_by_node() {
let sender = startup::create_new_utxo_address();
let middle_man = startup::create_new_utxo_address();
@@ -81,7 +79,6 @@ pub fn test_two_correct_utxo_to_utxo_transactions_are_accepted_by_node() {
}

#[test]
#[cfg(feature = "integration-test")]
pub fn test_correct_utxo_transaction_is_accepted_by_node() {
let sender = startup::create_new_utxo_address();
let reciever = startup::create_new_utxo_address();
@@ -107,7 +104,6 @@ pub fn test_correct_utxo_transaction_is_accepted_by_node() {
}

#[test]
#[cfg(feature = "integration-test")]
pub fn test_transaction_from_utxo_to_account_is_accepted_by_node() {
let sender = startup::create_new_utxo_address();
let reciever = startup::create_new_account_address();
@@ -133,7 +129,6 @@ pub fn test_transaction_from_utxo_to_account_is_accepted_by_node() {
}

#[test]
#[cfg(feature = "integration-test")]
pub fn test_transaction_from_account_to_account_is_accepted_by_node() {
let sender = startup::create_new_account_address();
let reciever = startup::create_new_account_address();
@@ -1,4 +1,4 @@
#![allow(dead_code)]
#![cfg(feature = "integration-test")]

use common::configuration::genesis_model::Fund;
use common::jcli_wrapper;
@@ -10,7 +10,6 @@ const FAKE_INPUT_TRANSACTION_ID: &str =
const FAKE_GENESIS_HASH: &str = "19c9852ca0a68f15d0f7de5d1a26acd67a3a3251640c6066bdb91d22e2000193";

#[test]
#[cfg(feature = "integration-test")]
pub fn test_cannot_create_input_with_negative_amount() {
JCLITransactionWrapper::new_transaction(FAKE_GENESIS_HASH).assert_add_input_fail(
&FAKE_INPUT_TRANSACTION_ID,
@@ -21,7 +20,6 @@ pub fn test_cannot_create_input_with_negative_amount() {
}

#[test]
#[cfg(feature = "integration-test")]
pub fn test_cannot_create_input_with_too_big_utxo_amount() {
JCLITransactionWrapper::new_transaction(FAKE_GENESIS_HASH).assert_add_input_fail(
&FAKE_INPUT_TRANSACTION_ID,
@@ -32,7 +30,6 @@ pub fn test_cannot_create_input_with_too_big_utxo_amount() {
}

#[test]
#[cfg(feature = "integration-test")]
pub fn test_unbalanced_output_utxo_transation_is_not_finalized() {
let reciever = startup::create_new_utxo_address();

@@ -43,7 +40,6 @@ pub fn test_unbalanced_output_utxo_transation_is_not_finalized() {
}

#[test]
#[cfg(feature = "integration-test")]
pub fn test_transaction_with_input_address_equal_to_output_is_accepted_by_node() {
let sender = startup::create_new_utxo_address();
let mut config = startup::build_configuration_with_funds(vec![Fund {
@@ -68,7 +64,6 @@ pub fn test_transaction_with_input_address_equal_to_output_is_accepted_by_node()
}

#[test]
#[cfg(feature = "integration-test")]
pub fn test_input_with_smaller_value_than_initial_utxo_is_rejected_by_node() {
let sender = startup::create_new_utxo_address();
let reciever = startup::create_new_utxo_address();
@@ -98,7 +93,6 @@ pub fn test_input_with_smaller_value_than_initial_utxo_is_rejected_by_node() {
}

#[test]
#[cfg(feature = "integration-test")]
pub fn test_input_with_no_spending_utxo_is_accepted_by_node() {
let sender = startup::create_new_utxo_address();
let reciever = startup::create_new_utxo_address();
@@ -124,7 +118,6 @@ pub fn test_input_with_no_spending_utxo_is_accepted_by_node() {
}

#[test]
#[cfg(feature = "integration-test")]
pub fn test_transaction_with_non_existing_id_should_be_rejected_by_node() {
let sender = startup::create_new_utxo_address();
let reciever = startup::create_new_utxo_address();

0 comments on commit e62dc12

Please sign in to comment.
You can’t perform that action at this time.