Skip to content

Commit

Permalink
fix: clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zyy17 committed Jun 17, 2024
1 parent 3c183ff commit 90a4794
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/mito2/src/compaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@ mod tests {
waiter,
&manifest_ctx,
)
.await
.unwrap();
let output = output_rx.await.unwrap().unwrap();
assert_eq!(output, 0);
Expand All @@ -633,6 +634,7 @@ mod tests {
waiter,
&manifest_ctx,
)
.await
.unwrap();
let output = output_rx.await.unwrap().unwrap();
assert_eq!(output, 0);
Expand Down Expand Up @@ -672,6 +674,7 @@ mod tests {
OptionOutputTx::none(),
&manifest_ctx,
)
.await
.unwrap();
// Should schedule 1 compaction.
assert_eq!(1, scheduler.region_status.len());
Expand Down Expand Up @@ -700,6 +703,7 @@ mod tests {
OptionOutputTx::none(),
&manifest_ctx,
)
.await
.unwrap();
assert_eq!(1, scheduler.region_status.len());
assert_eq!(1, job_scheduler.num_jobs());
Expand All @@ -711,7 +715,9 @@ mod tests {
.is_some());

// On compaction finished and schedule next compaction.
scheduler.on_compaction_finished(region_id, &manifest_ctx);
scheduler
.on_compaction_finished(region_id, &manifest_ctx)
.await;
assert_eq!(1, scheduler.region_status.len());
assert_eq!(2, job_scheduler.num_jobs());
// 5 files for next compaction.
Expand All @@ -731,6 +737,7 @@ mod tests {
OptionOutputTx::none(),
&manifest_ctx,
)
.await
.unwrap();
assert_eq!(2, job_scheduler.num_jobs());
assert!(scheduler
Expand Down

0 comments on commit 90a4794

Please sign in to comment.