Skip to content

Commit

Permalink
test more
Browse files Browse the repository at this point in the history
  • Loading branch information
olexiyb committed Jun 14, 2024
1 parent 83f5d9b commit 0ee1630
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/pg_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl PgCommand {
//
// ERROR: character with byte sequence 0xe0 0xab 0x87 in encoding
// "UTF8" has no equivalent in encoding "WIN1252"
// "-E=UTF8",
"-E=UTF8",
"-D",
database_dir.to_str().unwrap(),
&password_file_arg,
Expand Down
14 changes: 7 additions & 7 deletions tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use env_logger::Env;

use pg_embed::pg_enums::PgAuthMethod;
use pg_embed::pg_errors::PgEmbedError;
use pg_embed::pg_fetch::{PgFetchSettings, PG_V16};
use pg_embed::pg_fetch::{PG_V16, PgFetchSettings};
use pg_embed::postgres::{PgEmbed, PgSettings};

pub async fn setup(
Expand All @@ -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: Some(cache_dir),
cache_dir: None,
port,
user: "postgres".to_string(),
password: "password".to_string(),
Expand Down

0 comments on commit 0ee1630

Please sign in to comment.