about summary refs log tree commit diff
path: root/src/database/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/mod.rs')
-rw-r--r--src/database/mod.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/database/mod.rs b/src/database/mod.rs
index 82bbea5..e676008 100644
--- a/src/database/mod.rs
+++ b/src/database/mod.rs
@@ -233,7 +233,7 @@ mod tests {
         let client = redis::Client::open(uri.clone()).unwrap();
         let millisecond = Duration::from_millis(1);
         let mut retries: usize = 0;
-        const MAX_RETRIES: usize = 10 * 1000/*ms*/;
+        const MAX_RETRIES: usize = 60 * 1000/*ms*/;
         while let Err(err) = client.get_connection() {
             if err.is_connection_refusal() {
                 async_std::task::sleep(millisecond).await;
@@ -252,14 +252,16 @@ mod tests {
 
     #[async_std::test]
     async fn test_redis_storage_basic_operations() {
-        let (_, mut redis, backend) = get_redis_backend().await;
+        let (tempdir, mut redis, backend) = get_redis_backend().await;
         test_backend_basic_operations(backend).await;
         redis.kill().expect("Redis wasn't running");
+        drop(tempdir);
     }
     #[async_std::test]
     async fn test_redis_storage_channel_support() {
-        let (_, mut redis, backend) = get_redis_backend().await;
+        let (tempdir, mut redis, backend) = get_redis_backend().await;
         test_backend_get_channel_list(backend).await;
         redis.kill().expect("Redis wasn't running");
+        drop(tempdir);
     }
 }