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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user