Skip to content

Commit

Permalink
fix: fix path to iroha_test_config.toml
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Balashov <43530070+0x009922@users.noreply.github.com>
  • Loading branch information
0x009922 committed May 17, 2024
1 parent a196056 commit d3dbf2c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions core/src/kiso.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ impl Actor {

#[cfg(test)]
mod tests {
use std::{path::PathBuf, time::Duration};
use std::time::Duration;

use iroha_config::{
base::{read::ConfigReader, toml::TomlSource},
Expand All @@ -161,12 +161,7 @@ mod tests {
fn test_config() -> Root {
// if it fails, it is probably a bug
ConfigReader::new()
.with_toml_source(
TomlSource::from_file(
PathBuf::from(file!()).join("../../config/iroha_test_config.toml"),
)
.unwrap(),
)
.with_toml_source(TomlSource::from_file("../config/iroha_test_config.toml").unwrap())
.read_and_complete::<UserConfig>()
.unwrap()
.parse()
Expand Down

0 comments on commit d3dbf2c

Please sign in to comment.