diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-01-03 14:52:39 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-01-03 14:52:39 +0200 |
| commit | 4f80ddfccc4339b12c97648a1a00b72b4dfa3ef0 (patch) | |
| tree | 0601f56243010ac526af073fde500a679b47db43 /log_db/tests | |
| parent | 6caaac539308dd56b669c39c9665806e6ead6112 (diff) | |
Stabilize multithread tests
Diffstat (limited to 'log_db/tests')
| -rw-r--r-- | log_db/tests/integration.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/log_db/tests/integration.rs b/log_db/tests/integration.rs index 2d1615b..bb4b8ac 100644 --- a/log_db/tests/integration.rs +++ b/log_db/tests/integration.rs @@ -6,6 +6,7 @@ extern crate tempfile; use ctor::ctor; use env_logger; use log_db::*; +use serial_test::serial; use std::fs::{self}; use std::path::Path; use std::thread; @@ -251,6 +252,7 @@ fn test_upsert_and_find_all() { } #[test] +#[serial] fn test_multiple_writing_threads() { let data_dir = tmp_dir(); debug!("Data dir: {:?}", data_dir); @@ -298,6 +300,7 @@ fn test_multiple_writing_threads() { } #[test] +#[serial] fn test_one_writer_and_multiple_reading_threads() { let data_dir = tmp_dir(); let mut threads = vec![]; |
