Skip to content

Commit

Permalink
Fixing integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: dkijania <dariusz.kijania@iohk.io>
  • Loading branch information
dkijania committed Apr 24, 2019
1 parent 9691d1e commit 80e7d1e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/jcli_transaction_test.rs
Expand Up @@ -20,9 +20,10 @@ use common::startup;
#[cfg(feature = "integration-test")]
pub fn test_unbalanced_output_utxo_transation_is_rejected() {
let node_config = NodeConfig::new();
let genesis_model = GenesisYaml::new();
let jormungandr_rest_address = node_config.get_node_address();
let _jormungandr =
startup::start_jormungandr_node_with_genesis_conf(&GenesisYaml::new(), &node_config);
startup::start_jormungandr_node_with_genesis_conf(&genesis_model, &node_config);

let jcli_transaction_wrapper = JCLITransactionWrapper::new();
let utxos = jcli_wrapper::assert_rest_utxo_get(&jormungandr_rest_address);
Expand All @@ -49,9 +50,10 @@ pub fn test_unbalanced_output_utxo_transation_is_rejected() {
#[cfg(feature = "integration-test")]
pub fn test_utxo_transation_with_more_than_one_witness_is_rejected() {
let node_config = NodeConfig::new();
let genesis_model = GenesisYaml::new();
let jormungandr_rest_address = node_config.get_node_address();
let _jormungandr =
startup::start_jormungandr_node_with_genesis_conf(&GenesisYaml::new(), &node_config);
startup::start_jormungandr_node_with_genesis_conf(&genesis_model, &node_config);

let jcli_transaction_wrapper = JCLITransactionWrapper::new();
let utxos = jcli_wrapper::assert_rest_utxo_get(&jormungandr_rest_address);
Expand Down Expand Up @@ -84,9 +86,10 @@ pub fn test_utxo_transation_with_more_than_one_witness_is_rejected() {
#[cfg(feature = "integration-test")]
pub fn test_correct_utxo_transaction_is_accepted_by_node() {
let node_config = NodeConfig::new();
let genesis_model = GenesisYaml::new();
let jormungandr_rest_address = node_config.get_node_address();
let _jormungandr =
startup::start_jormungandr_node_with_genesis_conf(&GenesisYaml::new(), &node_config);
startup::start_jormungandr_node_with_genesis_conf(&genesis_model, &node_config);

let jcli_transaction_wrapper = JCLITransactionWrapper::new();

Expand Down

0 comments on commit 80e7d1e

Please sign in to comment.