Skip to content

Commit c807112

Browse files
committed
add assert
1 parent 8a20c8e commit c807112

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

turbopack/crates/turbo-tasks-backend/src/backend/operation/aggregation_update.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,23 @@ impl AggregatedDataUpdate {
573573
let upper_current_session_clean_update =
574574
before_after_to_diff_value(was_flagged_clean, is_flagged_clean);
575575

576+
let compute_result = ComputeDirtyAndCleanUpdate {
577+
old_dirty_container_count,
578+
new_dirty_container_count,
579+
old_current_session_clean_container_count,
580+
new_current_session_clean_container_count,
581+
old_dirty_value: dirty_value,
582+
new_dirty_value: dirty_value,
583+
old_current_session_clean_value: clean_value,
584+
new_current_session_clean_value: clean_value,
585+
}
586+
.compute();
587+
assert_eq!(compute_result.dirty_count_update, upper_count_update);
588+
assert_eq!(
589+
compute_result.current_session_clean_update,
590+
upper_current_session_clean_update
591+
);
592+
576593
if upper_count_update != 0 || upper_current_session_clean_update != 0 {
577594
result.dirty_container_update = Some((
578595
task_id,

0 commit comments

Comments
 (0)