fix: fix refactor

This commit is contained in:
EETagent 2022-12-14 18:12:57 +01:00
parent 054603d8b2
commit b232470a6e

View file

@ -374,7 +374,7 @@ mod tests {
tokio::fs::create_dir_all(application_cache_dir.clone()).await.unwrap();
std::env::set_var("STORE_PATH", temp_dir.to_str().unwrap());
std::env::set_var("PORTFOLIO_STORE_PATH", temp_dir.to_str().unwrap());
(temp_dir, application_dir, application_cache_dir)
}
@ -383,7 +383,7 @@ mod tests {
async fn clear_data_store_temp_dir(temp_dir: PathBuf) {
tokio::fs::remove_dir_all(temp_dir).await.unwrap();
std::env::remove_var("STORE_PATH");
std::env::remove_var("PORTFOLIO_STORE_PATH");
}
#[tokio::test]
@ -393,7 +393,7 @@ mod tests {
let plain_text_password = "test".to_string();
let temp_dir = std::env::temp_dir().join("portfolio_test_tempdir").join("create_folder");
std::env::set_var("STORE_PATH", temp_dir.to_str().unwrap());
std::env::set_var("PORTFOLIO_STORE_PATH", temp_dir.to_str().unwrap());
CandidateService::create(&db, APPLICATION_ID, &plain_text_password, "".to_string())
.await