test: 接入D-04扩展生命周期验收

This commit is contained in:
2026-09-12 02:17:32 +08:00
parent 226a8ce4d8
commit 9ec0eb0dd7
4 changed files with 228 additions and 0 deletions
@@ -676,6 +676,7 @@ mod tests {
"EXTENSION_CALL_REVIEW_UNKNOWN"
);
// 空闲实例也必须在许可撤销后自行退出并清空工具注册。
let revoked_at = Instant::now();
authority.revoke();
wait_for(|| {
registry.reap();
@@ -688,6 +689,7 @@ mod tests {
endpoint.snapshot().error
);
assert_eq!(endpoint.snapshot().tool_count, 0);
assert!(revoked_at.elapsed() < Duration::from_secs(5));
assert_eq!(
endpoint.snapshot().error.as_deref(),
Some("EXTENSION_PERMIT_REVOKED")