documentId generation within the database transaction

This commit is contained in:
mdecimus
2024-04-23 20:03:30 +02:00
parent 03332635f8
commit c6960bfba8
74 changed files with 2132 additions and 3111 deletions

View File

@@ -35,7 +35,11 @@ pub mod search;
pub mod store;
pub mod thread;
use std::{path::PathBuf, sync::Arc, time::Duration};
use std::{
path::PathBuf,
sync::Arc,
time::{Duration, Instant},
};
use ::managesieve::core::ManageSieveSessionManager;
use common::{
@@ -394,6 +398,7 @@ pub async fn imap_tests() {
}
// Prepare settings
let start_time = Instant::now();
let delete = true;
let handle = init_imap_tests(
&std::env::var("STORE")
@@ -448,6 +453,14 @@ pub async fn imap_tests() {
// Run ManageSieve tests
managesieve::test().await;
// Print elapsed time
let elapsed = start_time.elapsed();
println!(
"Elapsed: {}.{:03}s",
elapsed.as_secs(),
elapsed.subsec_millis()
);
// Remove test data
if delete {
handle.temp_dir.delete();