From 84b56f6f6642d55a9a8ca996bbe076c62240e410 Mon Sep 17 00:00:00 2001 From: Dmitry Murzin Date: Thu, 24 Oct 2024 01:09:29 +0300 Subject: [PATCH] fix: Restore some integration tests (#5186) Signed-off-by: Dmitry Murzin --- crates/iroha/tests/mod.rs | 4 ++++ crates/iroha/tests/triggers/by_call_trigger.rs | 2 +- crates/iroha/tests/triggers/event_trigger.rs | 2 +- crates/iroha/tests/triggers/time_trigger.rs | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 crates/iroha/tests/mod.rs diff --git a/crates/iroha/tests/mod.rs b/crates/iroha/tests/mod.rs new file mode 100644 index 00000000000..6d988ee1e37 --- /dev/null +++ b/crates/iroha/tests/mod.rs @@ -0,0 +1,4 @@ +mod events; +mod extra_functional; +mod queries; +mod triggers; diff --git a/crates/iroha/tests/triggers/by_call_trigger.rs b/crates/iroha/tests/triggers/by_call_trigger.rs index edd2e954f7d..edebfc6e868 100644 --- a/crates/iroha/tests/triggers/by_call_trigger.rs +++ b/crates/iroha/tests/triggers/by_call_trigger.rs @@ -15,7 +15,7 @@ use iroha_executor_data_model::permission::trigger::CanRegisterTrigger; use iroha_test_network::*; use iroha_test_samples::{load_sample_wasm, ALICE_ID}; -use crate::integration::triggers::get_asset_value; +use crate::triggers::get_asset_value; const TRIGGER_NAME: &str = "mint_rose"; diff --git a/crates/iroha/tests/triggers/event_trigger.rs b/crates/iroha/tests/triggers/event_trigger.rs index 001e18acb78..36fec8b6a68 100644 --- a/crates/iroha/tests/triggers/event_trigger.rs +++ b/crates/iroha/tests/triggers/event_trigger.rs @@ -3,7 +3,7 @@ use iroha::data_model::prelude::*; use iroha_test_network::*; use iroha_test_samples::ALICE_ID; -use crate::integration::triggers::get_asset_value; +use crate::triggers::get_asset_value; #[test] fn test_mint_asset_when_new_asset_definition_created() -> Result<()> { diff --git a/crates/iroha/tests/triggers/time_trigger.rs b/crates/iroha/tests/triggers/time_trigger.rs index c565610f702..ce870abce33 100644 --- a/crates/iroha/tests/triggers/time_trigger.rs +++ b/crates/iroha/tests/triggers/time_trigger.rs @@ -13,7 +13,7 @@ use iroha::{ use iroha_test_network::*; use iroha_test_samples::{gen_account_in, load_sample_wasm, ALICE_ID}; -use crate::integration::triggers::get_asset_value; +use crate::triggers::get_asset_value; fn curr_time() -> Duration { use std::time::SystemTime;