mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-02 13:23:10 +00:00
fix: suggestions fix
This commit is contained in:
parent
fedf63b759
commit
ab35d37766
@ -63,3 +63,19 @@ pub fn produce_data_for_storage(user_data: &NSSAUserData) -> Vec<InitialAccountD
|
||||
|
||||
vec_for_storage
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_get_home_get_env_var() {
|
||||
std::env::set_var(HOME_DIR_ENV_VAR, "/path/to/configs");
|
||||
|
||||
let home = get_home().unwrap();
|
||||
|
||||
assert_eq!(PathBuf::from_str("/path/to/configs").unwrap(), home);
|
||||
|
||||
std::env::remove_var(HOME_DIR_ENV_VAR);
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,7 +23,6 @@ use crate::{
|
||||
};
|
||||
|
||||
pub const HOME_DIR_ENV_VAR: &str = "NSSA_WALLET_HOME_DIR";
|
||||
pub const BLOCK_GEN_DELAY_SECS: u64 = 20;
|
||||
|
||||
pub mod chain_storage;
|
||||
pub mod config;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user