Skip to content

Commit

Permalink
alters test case
Browse files Browse the repository at this point in the history
  • Loading branch information
jspeis committed Sep 25, 2019
1 parent 7f5ff24 commit a4f9ee7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pool/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,11 +470,11 @@ mod test {

#[test]
fn test_query_timeout() {
let test_db_url = format!("{}{}", DATABASE_URL.as_str(), "&query_timeout=10ms");
let test_db_url = format!("{}{}", DATABASE_URL.as_str(), "&query_timeout=5ms");
let pool = Pool::new(test_db_url.to_string());

let done = pool.get_handle()
.and_then(|c| c.query("SELECT sleep(1)").fetch_all());
.and_then(|c| c.query("SELECT sleep(10)").fetch_all());


run(done).unwrap_err();
Expand Down

0 comments on commit a4f9ee7

Please sign in to comment.