diff --git a/src/mito2/src/compaction/scheduler_test.rs b/src/mito2/src/compaction/scheduler_test.rs index 7d1b4acbe8b..e2c054b77bf 100644 --- a/src/mito2/src/compaction/scheduler_test.rs +++ b/src/mito2/src/compaction/scheduler_test.rs @@ -1317,6 +1317,12 @@ async fn test_cancelled_queued_unit_releases_fenced_ddl( let pause_waiters = pause_first.then(|| { let first = pending_pause(&mut scheduler, region_id); let second = pending_pause(&mut scheduler, region_id); + let (active, _) = + CompactionState::current(&scheduler.region_status[®ion_id].shared_state); + assert_eq!( + active.unwrap().snapshot(None).state.as_ref(), + compaction_task::STATE_CANCELLING + ); [first, second] });