Skip to content

Commit

Permalink
revert back test
Browse files Browse the repository at this point in the history
  • Loading branch information
olexiyb committed Jun 14, 2024
1 parent 0ee1630 commit 997993a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ pub async fn setup(
let _ = env_logger::Builder::from_env(Env::default().default_filter_or("info"))
.is_test(true)
.try_init();
// let cache_dir = PathBuf::from("data_test").join("cache");
// std::fs::create_dir_all(&cache_dir).map_err(|e| PgEmbedError::DirCreationError {
// dir: cache_dir.clone(),
// e,
// })?;
let cache_dir = PathBuf::from("data_test").join("cache");
std::fs::create_dir_all(&cache_dir).map_err(|e| PgEmbedError::DirCreationError {
dir: cache_dir.clone(),
e,
})?;
let pg_settings = PgSettings {
database_dir,
cache_dir: None,
cache_dir: Some(cache_dir),
port,
user: "postgres".to_string(),
password: "password".to_string(),
Expand Down

0 comments on commit 997993a

Please sign in to comment.