Skip to content

Commit ca08d9d

Browse files
committed
fix: fix path to iroha_test_config.toml
Signed-off-by: Dmitry Balashov <43530070+0x009922@users.noreply.github.com>
1 parent 4ae9782 commit ca08d9d

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

core/src/kiso.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl Actor {
148148

149149
#[cfg(test)]
150150
mod tests {
151-
use std::{path::PathBuf, time::Duration};
151+
use std::time::Duration;
152152

153153
use iroha_config::{
154154
base::{read::ConfigReader, toml::TomlSource},
@@ -161,12 +161,7 @@ mod tests {
161161
fn test_config() -> Root {
162162
// if it fails, it is probably a bug
163163
ConfigReader::new()
164-
.with_toml_source(
165-
TomlSource::from_file(
166-
PathBuf::from(file!()).join("../../config/iroha_test_config.toml"),
167-
)
168-
.unwrap(),
169-
)
164+
.with_toml_source(TomlSource::from_file("../config/iroha_test_config.toml").unwrap())
170165
.read_and_complete::<UserConfig>()
171166
.unwrap()
172167
.parse()

0 commit comments

Comments
 (0)