Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 76580f91 authored by Qiong Liu's avatar Qiong Liu Committed by Takeshi Tanigawa
Browse files

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
parent 2a66c1ce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment