Skip to content

Commit eed486d

Browse files
authored
Merge pull request #407 from AdExNetwork/fix-test-postgres-pool
Fix test postgres pool
2 parents 3a859d7 + cc02b3b commit eed486d

File tree

7 files changed

+226
-86
lines changed

7 files changed

+226
-86
lines changed

Cargo.lock

Lines changed: 77 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sentry/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ hyper = { version = "0.14", features = ["stream", "runtime", "http1", "server"]
2626
regex = "1"
2727
# Database
2828
redis = { version = "0.19", features = ["aio", "tokio-comp"] }
29-
deadpool = "0.7.0"
30-
deadpool-postgres = "0.7.0"
29+
deadpool = "0.8.0"
30+
deadpool-postgres = "0.8.0"
3131
tokio-postgres = { version = "0.7.0", features = ["with-chrono-0_4", "with-serde_json-1"] }
3232

3333
# Migrations

sentry/src/access.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,13 @@ mod test {
222222
use deadpool::managed::Object;
223223

224224
use crate::{
225-
db::redis_pool::{Database, TESTS_POOL},
225+
db::redis_pool::{Manager, TESTS_POOL},
226226
Session,
227227
};
228228

229229
use super::*;
230230

231-
async fn setup() -> (Config, Object<Database, crate::db::redis_pool::Error>) {
231+
async fn setup() -> (Config, Object<Manager>) {
232232
let connection = TESTS_POOL.get().await.expect("Should return Object");
233233
let config = configuration("development", None).expect("Failed to get dev configuration");
234234

0 commit comments

Comments
 (0)