Skip to content

Commit 40a2aa7

Browse files
committed
fix test: only cap.list is enabled, then we can test delete with recursive
1 parent 5c67ce1 commit 40a2aa7

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

core/tests/behavior/async_delete.rs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,17 @@ pub fn tests(op: &Operator, tests: &mut Vec<Trial>) {
3737
test_delete_with_not_existing_version,
3838
test_batch_delete,
3939
test_batch_delete_with_version,
40-
test_delete_all_basic,
41-
test_delete_one_object_with_versions,
42-
test_delete_all_objects_with_recursive_and_versions
40+
test_delete_one_object_with_versions
4341
));
44-
if !cap.create_dir {
45-
tests.extend(async_trials!(op, test_delete_all_with_prefix_exists));
42+
if cap.list {
43+
tests.extend(async_trials!(
44+
op,
45+
test_delete_all_basic,
46+
test_delete_all_objects_with_recursive_and_versions
47+
));
48+
if !cap.create_dir {
49+
tests.extend(async_trials!(op, test_delete_all_with_prefix_exists));
50+
}
4651
}
4752
}
4853
}

core/tests/behavior/blocking_delete.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,16 @@ pub fn tests(op: &Operator, tests: &mut Vec<Trial>) {
2727
tests.extend(blocking_trials!(
2828
op,
2929
test_blocking_delete_file,
30-
test_blocking_delete_one_file,
31-
test_blocking_delete_all_basic
30+
test_blocking_delete_one_file
3231
));
33-
if !cap.create_dir {
34-
tests.extend(blocking_trials!(
35-
op,
36-
test_blocking_delete_all_with_prefix_exists
37-
));
32+
if cap.list {
33+
tests.extend(blocking_trials!(op, test_blocking_delete_all_basic));
34+
if !cap.create_dir {
35+
tests.extend(blocking_trials!(
36+
op,
37+
test_blocking_delete_all_with_prefix_exists
38+
));
39+
}
3840
}
3941
}
4042
}

0 commit comments

Comments
 (0)