Integrate reviewed full action pack admission and bounded idle scheduling
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user