Skip to content

Commit

Permalink
Run tests on single thread
Browse files Browse the repository at this point in the history
  • Loading branch information
radumarias committed Jul 30, 2024
1 parent 907bf17 commit e8a2709
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/encryptedfs/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use crate::{crypto, test_common};

static ROOT_INODE_STR: &str = "1";

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[tokio::test]
#[traced_test]
#[allow(clippy::too_many_lines)]
async fn test_write() {
Expand Down Expand Up @@ -162,7 +162,7 @@ async fn test_write() {
.await;
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[tokio::test]
#[traced_test]
#[allow(clippy::too_many_lines)]
// #[ignore]
Expand Down Expand Up @@ -337,7 +337,7 @@ async fn test_read() {
.await;
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[tokio::test]
#[traced_test]
#[allow(clippy::too_many_lines)]
// #[ignore]
Expand Down Expand Up @@ -412,7 +412,7 @@ async fn test_set_len() {
.await;
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[tokio::test]
#[traced_test]
#[allow(clippy::too_many_lines)]
async fn test_copy_file_range() {
Expand Down Expand Up @@ -498,7 +498,7 @@ async fn test_copy_file_range() {
.await;
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[tokio::test]
#[traced_test]
#[allow(clippy::too_many_lines)]
async fn test_read_dir() {
Expand Down Expand Up @@ -676,7 +676,7 @@ async fn test_read_dir() {
.await;
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[tokio::test]
#[traced_test]
#[allow(clippy::too_many_lines)]
async fn test_read_dir_plus() {
Expand Down Expand Up @@ -879,7 +879,7 @@ async fn test_read_dir_plus() {
.await;
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[tokio::test]
#[traced_test]
#[allow(clippy::too_many_lines)]
async fn test_find_by_name() {
Expand Down Expand Up @@ -917,7 +917,7 @@ async fn test_find_by_name() {
.await;
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[tokio::test]
#[traced_test]
#[allow(clippy::too_many_lines)]
async fn test_exists_by_name() {
Expand Down Expand Up @@ -950,7 +950,7 @@ async fn test_exists_by_name() {
.await;
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[tokio::test]
#[traced_test]
#[allow(clippy::too_many_lines)]
async fn test_remove_dir() {
Expand Down Expand Up @@ -992,7 +992,7 @@ async fn test_remove_dir() {
.await;
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[tokio::test]
#[traced_test]
#[allow(clippy::too_many_lines)]
async fn test_remove_file() {
Expand Down Expand Up @@ -1034,7 +1034,7 @@ async fn test_remove_file() {
.await;
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[tokio::test]
#[traced_test]
#[allow(clippy::too_many_lines)]
async fn test_find_by_name_exists_by_name100files() {
Expand Down Expand Up @@ -1071,7 +1071,7 @@ async fn test_find_by_name_exists_by_name100files() {
.await;
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[tokio::test]
#[traced_test]
#[allow(clippy::too_many_lines)]
async fn test_create_structure_and_root() {
Expand Down Expand Up @@ -1101,7 +1101,7 @@ async fn test_create_structure_and_root() {
.await;
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[tokio::test]
#[traced_test]
#[allow(clippy::too_many_lines)]
async fn test_create() {
Expand Down Expand Up @@ -1286,7 +1286,7 @@ async fn test_create() {
.await;
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[tokio::test]
#[traced_test]
#[allow(clippy::too_many_lines)]
async fn test_rename() {
Expand Down Expand Up @@ -2198,7 +2198,7 @@ async fn test_rename() {
.await;
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[tokio::test]
#[traced_test]
async fn test_open() {
run_test(TestSetup { key: "test_open" }, async {
Expand Down Expand Up @@ -2232,7 +2232,7 @@ async fn test_open() {
.await;
}

// #[tokio::test(flavor = "multi_thread", worker_threads = 2)]
// #[tokio::test]
// #[traced_test]
#[allow(clippy::too_many_lines)]
async fn _test_sample() {
Expand Down

0 comments on commit e8a2709

Please sign in to comment.