mirror of
https://github.com/danbulant/Portfolio
synced 2026-07-09 13:00:49 +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();
|
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)
|
(temp_dir, application_dir, application_cache_dir)
|
||||||
}
|
}
|
||||||
|
|
@ -383,7 +383,7 @@ mod tests {
|
||||||
async fn clear_data_store_temp_dir(temp_dir: PathBuf) {
|
async fn clear_data_store_temp_dir(temp_dir: PathBuf) {
|
||||||
tokio::fs::remove_dir_all(temp_dir).await.unwrap();
|
tokio::fs::remove_dir_all(temp_dir).await.unwrap();
|
||||||
|
|
||||||
std::env::remove_var("STORE_PATH");
|
std::env::remove_var("PORTFOLIO_STORE_PATH");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
|
|
@ -393,7 +393,7 @@ mod tests {
|
||||||
let plain_text_password = "test".to_string();
|
let plain_text_password = "test".to_string();
|
||||||
|
|
||||||
let temp_dir = std::env::temp_dir().join("portfolio_test_tempdir").join("create_folder");
|
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())
|
CandidateService::create(&db, APPLICATION_ID, &plain_text_password, "".to_string())
|
||||||
.await
|
.await
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue