File tree 4 files changed +6
-5
lines changed
4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ pub struct DatabaseConfiguration {
47
47
impl Default for DatabaseConfiguration {
48
48
fn default ( ) -> Self {
49
49
Self {
50
- disable_connection : true ,
50
+ disable_connection : false ,
51
51
host : "127.0.0.1" . to_string ( ) ,
52
52
port : 5432 ,
53
53
username : "postgres" . to_string ( ) ,
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ impl PartialConfiguration {
112
112
database : Some ( "postgres" . to_string ( ) ) ,
113
113
allow_statement_executions_against : Default :: default ( ) ,
114
114
conn_timeout_secs : Some ( 10 ) ,
115
- disable_connection : Some ( true ) ,
115
+ disable_connection : Some ( false ) ,
116
116
} ) ,
117
117
}
118
118
}
Original file line number Diff line number Diff line change @@ -773,14 +773,15 @@ async fn test_execute_statement() -> Result<()> {
773
773
. to_string ( ) ;
774
774
let host = test_db. connect_options ( ) . get_host ( ) . to_string ( ) ;
775
775
776
- let conf = PartialConfiguration {
776
+ let mut conf = PartialConfiguration :: init ( ) ;
777
+ conf. merge_with ( PartialConfiguration {
777
778
db : Some ( PartialDatabaseConfiguration {
778
779
database : Some ( database) ,
779
780
host : Some ( host) ,
780
781
..Default :: default ( )
781
782
} ) ,
782
783
..Default :: default ( )
783
- } ;
784
+ } ) ;
784
785
785
786
fs. insert (
786
787
url ! ( "postgrestools.jsonc" ) . to_file_path ( ) . unwrap ( ) ,
Original file line number Diff line number Diff line change 17
17
// YOU CAN COMMENT ME OUT :)
18
18
"db" : {
19
19
"host" : " 127.0.0.1" ,
20
- "port" : 54322 ,
20
+ "port" : 5432 ,
21
21
"username" : " postgres" ,
22
22
"password" : " postgres" ,
23
23
"database" : " postgres" ,
You can’t perform that action at this time.
0 commit comments