Skip to content

Commit 11d8e6a

Browse files
authored
Update main.rs
1 parent 188d294 commit 11d8e6a

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/main.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,7 @@ mod tests {
6666
assert!(db_init_result.is_ok());
6767
}
6868

69-
#[test]
70-
fn test_server_initialization_failure() {
71-
72-
fn failing_create_database_client(_url: String) -> Result<(), &'static str> {
73-
Err("connection failed")
74-
}
75-
76-
let env = mock_get_environment_variables();
77-
let client = failing_create_database_client("postgres://localhost/fail".to_string());
78-
79-
let db_init_result = mock_set_init_database_table(client);
80-
assert!(db_init_result.is_err());
81-
}
82-
69+
8370
#[test]
8471
fn test_listener_binding() {
8572
let env = mock_get_environment_variables();

0 commit comments

Comments
 (0)