Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zwang28 committed Dec 16, 2022
1 parent 0bdeb38 commit 38d8f2f
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/storage/hummock_test/src/compactor_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ pub(crate) mod tests {
prefix_hint: None,
table_id: Default::default(),
retention_seconds: None,
read_version_from_backup: false,
},
)
.await
Expand All @@ -320,6 +321,7 @@ pub(crate) mod tests {
prefix_hint: None,
table_id: Default::default(),
retention_seconds: None,
read_version_from_backup: false,
},
)
.await;
Expand Down Expand Up @@ -431,6 +433,7 @@ pub(crate) mod tests {
prefix_hint: None,
table_id: Default::default(),
retention_seconds: None,
read_version_from_backup: false,
},
)
.await
Expand Down Expand Up @@ -783,6 +786,7 @@ pub(crate) mod tests {
prefix_hint: None,
table_id: TableId::from(existing_table_ids),
retention_seconds: None,
read_version_from_backup: false,
},
)
.await
Expand Down Expand Up @@ -955,6 +959,7 @@ pub(crate) mod tests {
prefix_hint: None,
table_id: TableId::from(existing_table_id),
retention_seconds: None,
read_version_from_backup: false,
},
)
.await
Expand Down Expand Up @@ -1128,6 +1133,7 @@ pub(crate) mod tests {
prefix_hint: Some(bloom_filter_key),
table_id: TableId::from(existing_table_id),
retention_seconds: None,
read_version_from_backup: false,
},
)
.await
Expand Down
6 changes: 6 additions & 0 deletions src/storage/hummock_test/src/failpoint_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ async fn test_failpoints_state_store_read_upload() {
prefix_hint: None,
table_id: Default::default(),
retention_seconds: None,
read_version_from_backup: false,
},
)
.await
Expand Down Expand Up @@ -136,6 +137,7 @@ async fn test_failpoints_state_store_read_upload() {
prefix_hint: None,
table_id: Default::default(),
retention_seconds: None,
read_version_from_backup: false,
},
)
.await;
Expand All @@ -150,6 +152,7 @@ async fn test_failpoints_state_store_read_upload() {
prefix_hint: None,
table_id: Default::default(),
retention_seconds: None,
read_version_from_backup: false,
},
)
.await;
Expand All @@ -165,6 +168,7 @@ async fn test_failpoints_state_store_read_upload() {
prefix_hint: None,
table_id: Default::default(),
retention_seconds: None,
read_version_from_backup: false,
},
)
.await
Expand Down Expand Up @@ -199,6 +203,7 @@ async fn test_failpoints_state_store_read_upload() {
prefix_hint: None,
table_id: Default::default(),
retention_seconds: None,
read_version_from_backup: false,
},
)
.await
Expand All @@ -215,6 +220,7 @@ async fn test_failpoints_state_store_read_upload() {
prefix_hint: None,
table_id: Default::default(),
retention_seconds: None,
read_version_from_backup: false,
},
)
.await
Expand Down
34 changes: 34 additions & 0 deletions src/storage/hummock_test/src/hummock_storage_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ async fn test_storage_basic() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand All @@ -245,6 +246,7 @@ async fn test_storage_basic() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand All @@ -263,6 +265,7 @@ async fn test_storage_basic() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand Down Expand Up @@ -293,6 +296,7 @@ async fn test_storage_basic() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand Down Expand Up @@ -325,6 +329,7 @@ async fn test_storage_basic() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand All @@ -342,6 +347,7 @@ async fn test_storage_basic() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand All @@ -359,6 +365,7 @@ async fn test_storage_basic() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand Down Expand Up @@ -391,6 +398,7 @@ async fn test_storage_basic() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand All @@ -409,6 +417,7 @@ async fn test_storage_basic() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand All @@ -426,6 +435,7 @@ async fn test_storage_basic() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand Down Expand Up @@ -465,6 +475,7 @@ async fn test_storage_basic() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand Down Expand Up @@ -631,6 +642,7 @@ async fn test_state_store_sync() {
retention_seconds: None,
check_bloom_filter: false,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand Down Expand Up @@ -674,6 +686,7 @@ async fn test_state_store_sync() {
retention_seconds: None,
check_bloom_filter: false,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand All @@ -695,6 +708,7 @@ async fn test_state_store_sync() {
retention_seconds: None,
check_bloom_filter: false,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand Down Expand Up @@ -734,6 +748,7 @@ async fn test_state_store_sync() {
retention_seconds: None,
check_bloom_filter: false,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand Down Expand Up @@ -855,6 +870,7 @@ async fn test_delete_get() {
check_bloom_filter: true,
table_id: Default::default(),
retention_seconds: None,
read_version_from_backup: false,
}
)
.await
Expand Down Expand Up @@ -965,6 +981,7 @@ async fn test_multiple_epoch_sync() {
retention_seconds: None,
check_bloom_filter: false,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand All @@ -982,6 +999,7 @@ async fn test_multiple_epoch_sync() {
retention_seconds: None,
check_bloom_filter: false,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand All @@ -998,6 +1016,7 @@ async fn test_multiple_epoch_sync() {
retention_seconds: None,
check_bloom_filter: false,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand Down Expand Up @@ -1132,6 +1151,7 @@ async fn test_iter_with_min_epoch() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand All @@ -1154,6 +1174,7 @@ async fn test_iter_with_min_epoch() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand All @@ -1174,6 +1195,7 @@ async fn test_iter_with_min_epoch() {
retention_seconds: Some(1),
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand Down Expand Up @@ -1213,6 +1235,7 @@ async fn test_iter_with_min_epoch() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand All @@ -1235,6 +1258,7 @@ async fn test_iter_with_min_epoch() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand All @@ -1257,6 +1281,7 @@ async fn test_iter_with_min_epoch() {
retention_seconds: Some(1),
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
)
.await
Expand Down Expand Up @@ -1407,6 +1432,7 @@ async fn test_hummock_version_reader() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
read_snapshot,
)
Expand Down Expand Up @@ -1436,6 +1462,7 @@ async fn test_hummock_version_reader() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
read_snapshot,
)
Expand Down Expand Up @@ -1465,6 +1492,7 @@ async fn test_hummock_version_reader() {
retention_seconds: Some(1),
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
read_snapshot,
)
Expand Down Expand Up @@ -1532,6 +1560,7 @@ async fn test_hummock_version_reader() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
read_snapshot,
)
Expand Down Expand Up @@ -1570,6 +1599,7 @@ async fn test_hummock_version_reader() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
read_snapshot,
)
Expand Down Expand Up @@ -1608,6 +1638,7 @@ async fn test_hummock_version_reader() {
retention_seconds: Some(1),
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
read_snapshot,
)
Expand Down Expand Up @@ -1646,6 +1677,7 @@ async fn test_hummock_version_reader() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
read_snapshot,
)
Expand Down Expand Up @@ -1690,6 +1722,7 @@ async fn test_hummock_version_reader() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
read_snapshot,
)
Expand Down Expand Up @@ -1728,6 +1761,7 @@ async fn test_hummock_version_reader() {
retention_seconds: None,
check_bloom_filter: true,
prefix_hint: None,
read_version_from_backup: false,
},
read_snapshot,
)
Expand Down
2 changes: 2 additions & 0 deletions src/storage/hummock_test/src/snapshot_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ macro_rules! assert_count_range_scan {
prefix_hint: None,
table_id: Default::default(),
retention_seconds: None,
read_version_from_backup: false,
},
)
.await
Expand Down Expand Up @@ -85,6 +86,7 @@ macro_rules! assert_count_backward_range_scan {
epoch: $epoch,
table_id: Default::default(),
retention_seconds: None,
read_version_from_backup: false,
},
)
.await
Expand Down
Loading

0 comments on commit 38d8f2f

Please sign in to comment.