We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a9b71f commit dec5e95Copy full SHA for dec5e95
src/tests/mod.rs
@@ -43,14 +43,15 @@ impl TestContext {
43
// There does not seem to be a way to turn the config back into a connection
44
// string, so construct it manually.
45
let test_db_url = format!(
46
- "postgresql://{}:{}@{}/{}",
+ "postgresql://{}:{}@{}:{}/{}",
47
config.get_user().unwrap(),
48
String::from_utf8(config.get_password().unwrap().to_vec()).unwrap(),
49
match &config.get_hosts()[0] {
50
Host::Tcp(host) => host,
51
Host::Unix(_) =>
52
panic!("Unix sockets in Postgres connection string are not supported"),
53
},
54
+ &config.get_ports()[0],
55
db_name
56
);
57
let pool = ClientPool::new(test_db_url.clone());
0 commit comments