Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compute-pressure: Ensure clean test exit
It can happen on certain bots that the pressure updates are still sent before disconnect() is processed in the mockPressureService, which can lead in certain cases to receive more updates than allowed in the test. This patch adds a `gotPenalty` flag, to make sure that at least one penalty was applied when reaching the maximum allowed updates. Change-Id: I535b8c21370d14f13f0d6140d1eb2cc043cbeac2 Bug: 1501324 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5076963 Reviewed-by: Fr <beaufort.francois@gmail.com> Commit-Queue: Arnaud Mandy <arnaud.mandy@intel.com> Reviewed-by: Raphael Kubo Da Costa <raphael.kubo.da.costa@intel.com> Cr-Commit-Position: refs/heads/main@{#1232652}
- Loading branch information