Fix build

This commit is contained in:
Steven Fackler 2018-12-13 21:16:40 -08:00
parent 46f4a2911c
commit 20874e683f
2 changed files with 6 additions and 6 deletions

View File

@ -44,7 +44,7 @@ fn require() {
smoke_test( smoke_test(
tokio_postgres::Builder::new() tokio_postgres::Builder::new()
.user("ssl_user") .user("ssl_user")
.database("postgres"), .dbname("postgres"),
RequireTls(TlsConnector::with_connector(connector, "localhost")), RequireTls(TlsConnector::with_connector(connector, "localhost")),
); );
} }
@ -60,7 +60,7 @@ fn prefer() {
smoke_test( smoke_test(
tokio_postgres::Builder::new() tokio_postgres::Builder::new()
.user("ssl_user") .user("ssl_user")
.database("postgres"), .dbname("postgres"),
PreferTls(TlsConnector::with_connector(connector, "localhost")), PreferTls(TlsConnector::with_connector(connector, "localhost")),
); );
} }
@ -77,7 +77,7 @@ fn scram_user() {
tokio_postgres::Builder::new() tokio_postgres::Builder::new()
.user("scram_user") .user("scram_user")
.password("password") .password("password")
.database("postgres"), .dbname("postgres"),
RequireTls(TlsConnector::with_connector(connector, "localhost")), RequireTls(TlsConnector::with_connector(connector, "localhost")),
); );
} }

View File

@ -41,7 +41,7 @@ fn require() {
smoke_test( smoke_test(
tokio_postgres::Builder::new() tokio_postgres::Builder::new()
.user("ssl_user") .user("ssl_user")
.database("postgres"), .dbname("postgres"),
RequireTls(TlsConnector::new(ctx.configure().unwrap(), "localhost")), RequireTls(TlsConnector::new(ctx.configure().unwrap(), "localhost")),
); );
} }
@ -54,7 +54,7 @@ fn prefer() {
smoke_test( smoke_test(
tokio_postgres::Builder::new() tokio_postgres::Builder::new()
.user("ssl_user") .user("ssl_user")
.database("postgres"), .dbname("postgres"),
PreferTls(TlsConnector::new(ctx.configure().unwrap(), "localhost")), PreferTls(TlsConnector::new(ctx.configure().unwrap(), "localhost")),
); );
} }
@ -68,7 +68,7 @@ fn scram_user() {
tokio_postgres::Builder::new() tokio_postgres::Builder::new()
.user("scram_user") .user("scram_user")
.password("password") .password("password")
.database("postgres"), .dbname("postgres"),
RequireTls(TlsConnector::new(ctx.configure().unwrap(), "localhost")), RequireTls(TlsConnector::new(ctx.configure().unwrap(), "localhost")),
); );
} }