Skip to content

Commit

Permalink
fix: imports
Browse files Browse the repository at this point in the history
Signed-off-by: Nurzhan Sakén <[email protected]>
  • Loading branch information
nxsaken committed Sep 10, 2024
1 parent 41a7fe4 commit 772b0ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/iroha/tests/integration/events/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use iroha::{
},
};
use iroha_config::parameters::actual::Root as Config;
use nonzero_ext::nonzero;
use iroha_test_network::*;
use nonzero_ext::nonzero;

Expand All @@ -33,7 +32,7 @@ fn transaction_with_no_instructions_should_be_committed() -> Result<()> {
// #[ignore = "Experiment"]
#[test]
fn transaction_with_fail_instruction_should_be_rejected() -> Result<()> {
let unknown_domain_id = "dummy".parse::<DomainId>().unwrap();
let unknown_domain_id = "dummy".parse::<DomainId>()?;
let fail_isi = Unregister::domain(unknown_domain_id.clone());

test_with_instruction_and_status_and_port(
Expand All @@ -53,7 +52,7 @@ fn test_with_instruction_and_status_and_port(
port: u16,
) -> Result<()> {
let (_rt, network, client) =
Network::start_test_with_runtime(PEER_COUNT.try_into().unwrap(), Some(port));
Network::start_test_with_runtime(PEER_COUNT.try_into()?, Some(port));
let clients = network.clients();
wait_for_genesis_committed(&clients, 0);
let pipeline_time = Config::pipeline_time();
Expand Down
1 change: 1 addition & 0 deletions crates/iroha/tests/integration/multisig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use iroha::{
},
};
use iroha_test_network::*;
use iroha_test_samples::{gen_account_in, ALICE_ID};
use nonzero_ext::nonzero;

#[test]
Expand Down
1 change: 1 addition & 0 deletions crates/iroha/tests/integration/queries/asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use iroha::{
},
};
use iroha_test_network::*;
use iroha_test_samples::{gen_account_in, ALICE_ID};

#[test]
#[allow(clippy::too_many_lines)]
Expand Down

0 comments on commit 772b0ef

Please sign in to comment.