Skip to content

Commit 20874e6

Browse files
committed
Fix build
1 parent 46f4a29 commit 20874e6

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

tokio-postgres-native-tls/src/test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn require() {
4444
smoke_test(
4545
tokio_postgres::Builder::new()
4646
.user("ssl_user")
47-
.database("postgres"),
47+
.dbname("postgres"),
4848
RequireTls(TlsConnector::with_connector(connector, "localhost")),
4949
);
5050
}
@@ -60,7 +60,7 @@ fn prefer() {
6060
smoke_test(
6161
tokio_postgres::Builder::new()
6262
.user("ssl_user")
63-
.database("postgres"),
63+
.dbname("postgres"),
6464
PreferTls(TlsConnector::with_connector(connector, "localhost")),
6565
);
6666
}
@@ -77,7 +77,7 @@ fn scram_user() {
7777
tokio_postgres::Builder::new()
7878
.user("scram_user")
7979
.password("password")
80-
.database("postgres"),
80+
.dbname("postgres"),
8181
RequireTls(TlsConnector::with_connector(connector, "localhost")),
8282
);
8383
}

tokio-postgres-openssl/src/test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fn require() {
4141
smoke_test(
4242
tokio_postgres::Builder::new()
4343
.user("ssl_user")
44-
.database("postgres"),
44+
.dbname("postgres"),
4545
RequireTls(TlsConnector::new(ctx.configure().unwrap(), "localhost")),
4646
);
4747
}
@@ -54,7 +54,7 @@ fn prefer() {
5454
smoke_test(
5555
tokio_postgres::Builder::new()
5656
.user("ssl_user")
57-
.database("postgres"),
57+
.dbname("postgres"),
5858
PreferTls(TlsConnector::new(ctx.configure().unwrap(), "localhost")),
5959
);
6060
}
@@ -68,7 +68,7 @@ fn scram_user() {
6868
tokio_postgres::Builder::new()
6969
.user("scram_user")
7070
.password("password")
71-
.database("postgres"),
71+
.dbname("postgres"),
7272
RequireTls(TlsConnector::new(ctx.configure().unwrap(), "localhost")),
7373
);
7474
}

0 commit comments

Comments
 (0)