Integrate reviewed full action pack admission and bounded idle scheduling

This commit is contained in:
zenord
2026-10-13 07:19:34 +08:00
parent 97f87e2409
commit f0620ddd65
21 changed files with 285 additions and 75 deletions
+4 -4
View File
@@ -144,14 +144,14 @@ fun actualMediaViewCheck() {
val (idleView,idleBinding,idleTrace)=rig(idleIndex)
TestScheduler.advanceBy(3000)
check(idleTrace.all { it.actual=="body_neutral" });cases++
TestScheduler.until { idleBinding.currentPackageId in setOf("happy","sad") }
TestScheduler.until(15_000) { idleBinding.currentPackageId in setOf("happy","sad") }
val firstIdle=idleBinding.currentPackageId
check(idleTrace.any { it.actual=="bridge" } && idleBinding.visualStatus=="neutral_idle_variant");cases++
TestScheduler.until { idleBinding.currentPackageId=="neutral" }
TestScheduler.until { idleBinding.currentPackageId in setOf("happy","sad") }
TestScheduler.until(15_000) { idleBinding.currentPackageId=="neutral" }
TestScheduler.until(15_000) { idleBinding.currentPackageId in setOf("happy","sad") }
check(idleBinding.currentPackageId!=firstIdle && idleTrace.none { it.actual=="media_failed" });cases++
idleBinding.intent(mediaReply(RoleEmotion.NEUTRAL),true)
TestScheduler.until { idleBinding.currentPackageId=="neutral" }
TestScheduler.until(15_000) { idleBinding.currentPackageId=="neutral" }
val speechStart=idleTrace.size;TestScheduler.advanceBy(9000)
check(idleTrace.drop(speechStart).all { it.actual=="body_neutral" });cases++
val beforeDispose=idleTrace.size;idleView.dispose();TestScheduler.advanceBy(1000)