We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
iroha_test_config.toml
1 parent 4ae9782 commit ca08d9dCopy full SHA for ca08d9d
1 file changed
core/src/kiso.rs
@@ -148,7 +148,7 @@ impl Actor {
148
149
#[cfg(test)]
150
mod tests {
151
- use std::{path::PathBuf, time::Duration};
+ use std::time::Duration;
152
153
use iroha_config::{
154
base::{read::ConfigReader, toml::TomlSource},
@@ -161,12 +161,7 @@ mod tests {
161
fn test_config() -> Root {
162
// if it fails, it is probably a bug
163
ConfigReader::new()
164
- .with_toml_source(
165
- TomlSource::from_file(
166
- PathBuf::from(file!()).join("../../config/iroha_test_config.toml"),
167
- )
168
- .unwrap(),
169
+ .with_toml_source(TomlSource::from_file("../config/iroha_test_config.toml").unwrap())
170
.read_and_complete::<UserConfig>()
171
.unwrap()
172
.parse()
0 commit comments