fix: use a reserved example.invalid host in the postgres URL test fixture
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -409,7 +409,7 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn pg_dump_keeps_the_url_out_of_argv() {
|
fn pg_dump_keeps_the_url_out_of_argv() {
|
||||||
let target =
|
let target =
|
||||||
parse_postgres_url("postgres://migrator:s%3Acret@db.internal:5433/billing").unwrap();
|
parse_postgres_url("postgres://migrator:s%3Acret@example.invalid:5433/billing").unwrap();
|
||||||
assert_eq!(target.password, "s:cret");
|
assert_eq!(target.password, "s:cret");
|
||||||
let args = dump_args("custom").unwrap();
|
let args = dump_args("custom").unwrap();
|
||||||
let pgpass = write_pgpass(&target, false).unwrap();
|
let pgpass = write_pgpass(&target, false).unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user