Skip to content
Permalink
Browse files

Removing test not compatible with linux

Signed-off-by: dkijania <dariusz.kijania@iohk.io>
  • Loading branch information...
dkijania committed May 14, 2019
1 parent f911287 commit 7b89f987603a060c8c28603f929510184e52193c
@@ -1,7 +1,6 @@
#![cfg(feature = "integration-test")]

use common::configuration::genesis_model::Fund;
use common::file_utils;
use common::jcli_wrapper;
use common::jcli_wrapper::jcli_transaction_wrapper::JCLITransactionWrapper;
use common::startup;
@@ -51,18 +50,6 @@ pub fn test_add_account_for_utxo_address_fails() {
);
}

#[test]
pub fn test_cannot_create_input_when_staging_file_is_readonly() {
let mut transaction_wrapper = JCLITransactionWrapper::new_transaction(FAKE_GENESIS_HASH);
file_utils::make_readonly(&transaction_wrapper.staging_file_path);
transaction_wrapper.assert_add_input_fail(
&FAKE_INPUT_TRANSACTION_ID,
&0,
"100",
"Access is denied",
);
}

#[test]
pub fn test_add_account_for_utxo_delegation_address_fails() {
let sender = startup::create_new_delegation_address();
@@ -1,7 +1,6 @@
#![cfg(feature = "integration-test")]

use common::data::witness::Witness;
use common::file_utils;
use common::jcli_wrapper;
use common::jcli_wrapper::jcli_transaction_wrapper::JCLITransactionWrapper;
use common::startup;
@@ -116,28 +115,7 @@ pub fn test_make_witness_with_non_existing_private_key_file_fails() {
.assert_add_input(&FAKE_INPUT_TRANSACTION_ID, &0, &100)
.assert_add_output(&reciever.address, &100)
.assert_finalize()
.assert_make_witness_fails(&witness, "The system cannot find the file specified");
}

#[test]
pub fn test_make_witness_with_readonly_private_key_file_fails() {
let reciever = startup::create_new_utxo_address();
let mut transaction_wrapper = JCLITransactionWrapper::new_transaction(FAKE_GENESIS_HASH);
let private_key = jcli_wrapper::assert_key_generate_default();

let witness = Witness::new(
FAKE_GENESIS_HASH,
FAKE_INPUT_TRANSACTION_ID,
"utxo",
&private_key,
&0,
);
file_utils::make_readonly(&witness.file);
transaction_wrapper
.assert_add_input(&FAKE_INPUT_TRANSACTION_ID, &0, &100)
.assert_add_output(&reciever.address, &100)
.assert_finalize()
.assert_make_witness_fails(&witness, "Access is denied");
.assert_make_witness_fails(&witness, "NotFound");
}

#[test]
@@ -6,7 +6,6 @@ use common::configuration::node_config_model::Peer;
use common::jcli_wrapper;
use common::jcli_wrapper::jcli_transaction_wrapper::JCLITransactionWrapper;
use common::startup;
use std::{thread, time};

#[test]
pub fn two_nodes_communication() {

0 comments on commit 7b89f98

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