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:
2026-11-16 21:19:58 +07:00
parent 8a025b10e4
commit 6d2b882b3d

View File

@@ -409,7 +409,7 @@ mod tests {
#[test]
fn pg_dump_keeps_the_url_out_of_argv() {
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");
let args = dump_args("custom").unwrap();
let pgpass = write_pgpass(&target, false).unwrap();