Fix testNetworkCachingOverflow failure in CellularNetworkValidatorTest
PriorityQueue is used for caching the validated networks, but it can not make sure the cache record FIFO when the timestamps of records are the same. This leads to the failure of the testNetworkCachingOverflow. Use ArrayDeque for caching the validated networks to make sure FIFO. Test: atest CellularNetworkValidatorTest Bug: 388385717 Change-Id: Ia74b03b9b1b9140ff76e382d6c2a99ff10297527
Loading
Please register or sign in to comment