Skip to content
This repository has been archived by the owner on Aug 4, 2024. It is now read-only.

Commit

Permalink
fix: block_on bug
Browse files Browse the repository at this point in the history
  • Loading branch information
KKould committed Nov 12, 2023
1 parent f2b80f8 commit 5c3ef54
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/kernel/lsm/compactor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,14 +481,12 @@ mod tests {
)
.await?;

let (_, vec_data) = &tokio_test::block_on(async move {
Compactor::data_merge_and_sharding(
vec![&ss_table_1, &ss_table_2],
vec![&ss_table_3, &ss_table_4],
config.sst_file_size,
)
.await
})?[0];
let (_, vec_data) = &Compactor::data_merge_and_sharding(
vec![&ss_table_1, &ss_table_2],
vec![&ss_table_3, &ss_table_4],
config.sst_file_size,
)
.await?[0];

assert_eq!(
vec_data,
Expand Down

0 comments on commit 5c3ef54

Please sign in to comment.