@@ -412,12 +412,12 @@ fn test_custom_notice_handler() {
412412
413413#[ test]
414414fn test_plaintext_pass( ) {
415- PostgresConnection :: connect( "postgres://pass_user:password@localhost" ) ;
415+ PostgresConnection :: connect( "postgres://pass_user:password@localhost/postgres " ) ;
416416}
417417
418418#[ test]
419419fn test_plaintext_pass_no_pass( ) {
420- let ret = PostgresConnection :: try_connect( "postgres://pass_user@localhost" ) ;
420+ let ret = PostgresConnection :: try_connect( "postgres://pass_user@localhost/postgres " ) ;
421421 match ret {
422422 Err ( MissingPassword ) => ( ) ,
423423 Err ( err) => fail2!( "Unexpected error {}" , err. to_str( ) ) ,
@@ -427,7 +427,7 @@ fn test_plaintext_pass_no_pass() {
427427
428428#[ test]
429429fn test_plaintext_pass_wrong_pass( ) {
430- let ret = PostgresConnection :: try_connect( "postgres://pass_user:asdf@localhost" ) ;
430+ let ret = PostgresConnection :: try_connect( "postgres://pass_user:asdf@localhost/postgres " ) ;
431431 match ret {
432432 Err ( DbError ( PostgresDbError { code: InvalidPassword , _ } ) ) => ( ) ,
433433 Err ( err) => fail2!( "Unexpected error {}" , err. to_str( ) ) ,
@@ -437,12 +437,12 @@ fn test_plaintext_pass_wrong_pass() {
437437
438438#[ test]
439439fn test_md5_pass( ) {
440- PostgresConnection :: connect( "postgres://md5_user:password@localhost" ) ;
440+ PostgresConnection :: connect( "postgres://md5_user:password@localhost/postgres " ) ;
441441}
442442
443443#[ test]
444444fn test_md5_pass_no_pass( ) {
445- let ret = PostgresConnection :: try_connect( "postgres://md5_user@localhost" ) ;
445+ let ret = PostgresConnection :: try_connect( "postgres://md5_user@localhost/postgres " ) ;
446446 match ret {
447447 Err ( MissingPassword ) => ( ) ,
448448 Err ( err) => fail2!( "Unexpected error {}" , err. to_str( ) ) ,
@@ -452,7 +452,7 @@ fn test_md5_pass_no_pass() {
452452
453453#[ test]
454454fn test_md5_pass_wrong_pass( ) {
455- let ret = PostgresConnection :: try_connect( "postgres://md5_user:asdf@localhost" ) ;
455+ let ret = PostgresConnection :: try_connect( "postgres://md5_user:asdf@localhost/postgres " ) ;
456456 match ret {
457457 Err ( DbError ( PostgresDbError { code: InvalidPassword , _ } ) ) => ( ) ,
458458 Err ( err) => fail2!( "Unexpected error {}" , err. to_str( ) ) ,
0 commit comments