Fix test that did not know about pool stats

Since pool stats do not have lookaside field populated, the
field is meaningless so test needed to be updated to reflect
that.

Bug: 237726334
Test: atest SQLiteOpenHelperTest#testLookasideDefault
Change-Id: Ic5b6f45b0952c507370b5ef928143e5e9f4d7d3f
This commit is contained in:
Edgar Arriaga
2022-07-29 18:12:18 +00:00
parent cd671e384b
commit ecc21644d9

View File

@@ -161,7 +161,7 @@ public class SQLiteOpenHelperTest {
boolean dbStatFound = false;
SQLiteDebug.PagerStats info = SQLiteDebug.getDatabaseInfo();
for (SQLiteDebug.DbStats dbStat : info.dbStats) {
if (dbStat.dbName.endsWith(dbName)) {
if (dbStat.dbName.endsWith(dbName) && !dbStat.arePoolStats) {
dbStatFound = true;
Log.i(TAG, "Lookaside for " + dbStat.dbName + " " + dbStat.lookaside);
if (expectDisabled) {