From 1f6ca2cf68ab87ec73f4e341aff352ba8d460a10 Mon Sep 17 00:00:00 2001 From: "minke.yu" Date: Fri, 9 Oct 2026 11:32:33 +0800 Subject: [PATCH] test: adopt upstream #42035 auxiliary-output asserts now that checkpoint_disagg_prefill shim exists --- .../unit/managers/test_auxiliary_output.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/test/registered/unit/managers/test_auxiliary_output.py b/test/registered/unit/managers/test_auxiliary_output.py index 4265ea61ee..fec69a41ac 100644 --- a/test/registered/unit/managers/test_auxiliary_output.py +++ b/test/registered/unit/managers/test_auxiliary_output.py @@ -595,19 +595,21 @@ def test_disaggregated_prefill_consumes_auxiliary_output_after_commit(): spec_algorithm=SimpleNamespace(is_eagle=lambda: False), tree_cache=object(), disagg_prefill_inflight_queue=[], + checkpoint_disagg_prefill=Mock(), send_kv_chunk=Mock(), metrics_reporter=SimpleNamespace(report_prefill_stats=Mock()), maybe_send_health_check_signal=Mock(), ) - with patch("sglang.srt.disaggregation.prefill.maybe_cache_unfinished_req"): - SchedulerDisaggregationPrefillMixin.process_batch_result_disagg_prefill( - scheduler, - batch, - result, - ) + SchedulerDisaggregationPrefillMixin.process_batch_result_disagg_prefill( + scheduler, + batch, + result, + ) assert req.output_ids == [7] + scheduler.checkpoint_disagg_prefill.assert_called_once_with(req) + copy_done.synchronize.assert_called_once_with() snapshot_auxiliary_output_starts.assert_called_once_with(batch, result) processor.consume_auxiliary_output.assert_called_once_with( batch,