Skip to content

Commit 588b624

Browse files
committed
test: correct linux/macos tests
1 parent 33a7121 commit 588b624

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

postgresql_commands/src/createuser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ mod tests {
505505
.pg_password("password")
506506
.build();
507507
#[cfg(not(target_os = "windows"))]
508-
let command_prefix = r#"PGPASSWORD="password" "#;
508+
let command_prefix = r#"PGDATABASE="database" PGPASSWORD="password" "#;
509509
#[cfg(target_os = "windows")]
510510
let command_prefix = String::new();
511511

postgresql_commands/src/ecpg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ mod tests {
231231
fn test_builder_from() {
232232
let command = EcpgBuilder::from(&TestSettings).build();
233233
#[cfg(not(target_os = "windows"))]
234-
let command_prefix = r#"PGPASSWORD="password" "./ecpg""#;
234+
let command_prefix = r#""./ecpg""#;
235235
#[cfg(target_os = "windows")]
236236
let command_prefix = r#"".\\ecpg""#;
237237

postgresql_commands/src/pg_ctl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ mod tests {
335335
fn test_builder_from() {
336336
let command = PgCtlBuilder::from(&TestSettings).build();
337337
#[cfg(not(target_os = "windows"))]
338-
let command_prefix = r#"./pg_ctl""#;
338+
let command_prefix = r#""./pg_ctl""#;
339339
#[cfg(target_os = "windows")]
340340
let command_prefix = r#"".\\pg_ctl""#;
341341

postgresql_commands/src/pg_isready.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ mod tests {
187187
fn test_builder_from() {
188188
let command = PgIsReadyBuilder::from(&TestSettings).build();
189189
#[cfg(not(target_os = "windows"))]
190-
let command_prefix = r#"PGPASSWORD="password" "./pg_isready" "#;
190+
let command_prefix = r#""./pg_isready" "#;
191191
#[cfg(target_os = "windows")]
192192
let command_prefix = r#"".\\pg_isready" "#;
193193

postgresql_commands/src/pgbench.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ mod tests {
667667
fn test_builder_from() {
668668
let command = PgBenchBuilder::from(&TestSettings).build();
669669
#[cfg(not(target_os = "windows"))]
670-
let command_prefix = r#"./pgbench" "#;
670+
let command_prefix = r#""./pgbench" "#;
671671
#[cfg(target_os = "windows")]
672672
let command_prefix = r#"".\\pgbench" "#;
673673

0 commit comments

Comments
 (0)