File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ fn drop_database(database_url: &str) -> DatabaseResult<()> {
162162 #[ cfg( feature="postgres" ) ]
163163 Backend :: Pg => {
164164 let ( database, postgres_url) = change_database_of_url ( database_url, "postgres" ) ;
165+ println ! ( "Dropping database: {}" , database) ;
165166 let conn = try!( PgConnection :: establish ( & postgres_url) ) ;
166167 try!( conn. silence_notices ( || {
167168 conn. execute ( & format ! ( "DROP DATABASE IF EXISTS {}" , database) )
Original file line number Diff line number Diff line change @@ -55,9 +55,10 @@ fn reset_handles_postgres_urls_with_username_and_password() {
5555 db. execute ( "DROP ROLE IF EXISTS foo" ) ;
5656 db. execute ( "CREATE ROLE foo WITH LOGIN SUPERUSER PASSWORD 'password'" ) ;
5757
58+ let database_url = format ! ( "postgres://foo:password@localhost/diesel_{}" , p. name) ;
5859 let result = p. command ( "database" )
5960 . arg ( "reset" )
60- . env ( "DATABASE_URL" , & format ! ( "postgres://foo:password@localhost/{}" , p . name ) )
61+ . env ( "DATABASE_URL" , & database_url )
6162 . run ( ) ;
6263
6364 assert ! ( result. is_success( ) , "Result was unsuccessful {:?}" , result. stdout( ) ) ;
You can’t perform that action at this time.
0 commit comments