test(ilm): realign source-marker assertions with handler order (#7321)

This commit is contained in:
唐小鸭
2026-09-07 02:10:13 +08:00
committed by GitHub
parent a04ddc237e
commit 536c283716
+3 -3
View File
@@ -1939,7 +1939,7 @@ mod tests {
let gate = extract_block_between_markers(
production,
"async fn authorize_recovery_admin_request",
"fn transition_transaction_id_from_params",
"async fn authorize_transition_admin_request",
);
assert!(gate.contains("let credentials = authorize_admin_request("));
assert!(gate.contains("recovery_actor_sha256(&credentials)"));
@@ -2153,7 +2153,7 @@ mod tests {
let inspect = src
.split("impl Operation for TransitionReconcileInspectHandler")
.nth(1)
.and_then(|block| block.split("pub struct IlmRecoveryControlListHandler").next())
.and_then(|block| block.split("impl Operation for TransitionReconcileApplyHandler").next())
.expect("inspect handler block");
assert!(inspect.contains("AdminAction::ListTierAction"));
assert!(!inspect.contains("AdminAction::SetTierAction"));
@@ -2502,7 +2502,7 @@ mod tests {
let wrapper = extract_block_between_markers(
production,
"async fn authorize_transition_admin_request",
"async fn authorize_recovery_admin_request",
"fn transition_transaction_id_from_params",
);
assert_eq!(