diff --git a/tokio-postgres-native-tls/src/test.rs b/tokio-postgres-native-tls/src/test.rs index f98b563f..6c2a8ac6 100644 --- a/tokio-postgres-native-tls/src/test.rs +++ b/tokio-postgres-native-tls/src/test.rs @@ -44,7 +44,7 @@ fn require() { smoke_test( tokio_postgres::Builder::new() .user("ssl_user") - .database("postgres"), + .dbname("postgres"), RequireTls(TlsConnector::with_connector(connector, "localhost")), ); } @@ -60,7 +60,7 @@ fn prefer() { smoke_test( tokio_postgres::Builder::new() .user("ssl_user") - .database("postgres"), + .dbname("postgres"), PreferTls(TlsConnector::with_connector(connector, "localhost")), ); } @@ -77,7 +77,7 @@ fn scram_user() { tokio_postgres::Builder::new() .user("scram_user") .password("password") - .database("postgres"), + .dbname("postgres"), RequireTls(TlsConnector::with_connector(connector, "localhost")), ); } diff --git a/tokio-postgres-openssl/src/test.rs b/tokio-postgres-openssl/src/test.rs index 72d1dd78..db58b448 100644 --- a/tokio-postgres-openssl/src/test.rs +++ b/tokio-postgres-openssl/src/test.rs @@ -41,7 +41,7 @@ fn require() { smoke_test( tokio_postgres::Builder::new() .user("ssl_user") - .database("postgres"), + .dbname("postgres"), RequireTls(TlsConnector::new(ctx.configure().unwrap(), "localhost")), ); } @@ -54,7 +54,7 @@ fn prefer() { smoke_test( tokio_postgres::Builder::new() .user("ssl_user") - .database("postgres"), + .dbname("postgres"), PreferTls(TlsConnector::new(ctx.configure().unwrap(), "localhost")), ); } @@ -68,7 +68,7 @@ fn scram_user() { tokio_postgres::Builder::new() .user("scram_user") .password("password") - .database("postgres"), + .dbname("postgres"), RequireTls(TlsConnector::new(ctx.configure().unwrap(), "localhost")), ); }