mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-24 09:01:48 +00:00
fix: fix refactor
This commit is contained in:
parent
054603d8b2
commit
b232470a6e
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue