Skip to content

Commit fdeba6d

Browse files
committed
Remove test that no longer make sense
1 parent cde5419 commit fdeba6d

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

tests/test.rs

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,7 @@ use std::sync::{Arc, Future};
77
use std::comm;
88

99
use postgres::NoSsl;
10-
use postgres::error::{SocketError, InvalidUrl};
11-
use r2d2_postgres::{PostgresPoolManager, ConnectError};
12-
13-
#[test]
14-
fn test_bad_url_deferred() {
15-
let manager = PostgresPoolManager::new("not a url", NoSsl);
16-
let config = Default::default();
17-
let handler = r2d2::NoopErrorHandler;
18-
match r2d2::Pool::new(config, manager, handler) {
19-
Err(r2d2::ConnectionError(ConnectError(InvalidUrl(_)))) => {}
20-
Err(err) => fail!("Unexpected error {}", err),
21-
_ => fail!("Unexpected success"),
22-
}
23-
}
24-
25-
#[test]
26-
fn test_bad_host_error() {
27-
let manager = PostgresPoolManager::new("postgres://bogushost", NoSsl);
28-
let config = Default::default();
29-
let handler = r2d2::NoopErrorHandler;
30-
match r2d2::Pool::new(config, manager, handler) {
31-
Err(r2d2::ConnectionError(ConnectError(SocketError(_)))) => {}
32-
Err(err) => fail!("Unexpected error {}", err),
33-
_ => fail!("Unexpected success")
34-
}
35-
}
10+
use r2d2_postgres::PostgresPoolManager;
3611

3712
#[test]
3813
fn test_basic() {

0 commit comments

Comments
 (0)