mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-08 09:12:26 +00:00
fix: reset env after test run
This commit is contained in:
parent
f6a28aa226
commit
aa1df5c74e
1 changed files with 2 additions and 0 deletions
|
|
@ -482,6 +482,8 @@ mod tests {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
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");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue