diff options
Diffstat (limited to 'tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java')
-rw-r--r-- | tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java b/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java index bbfba1e..a9d8a36 100644 --- a/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java +++ b/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java @@ -87,13 +87,8 @@ public class ContactsDatabaseHelperTest extends BaseContactsProvider2Test { assertEquals(a1id, mDbHelper.getOrCreateAccountIdInTransaction(AccountWithDataSet.LOCAL)); assertEquals((Long) a1id, mDbHelper.getAccountIdOrNull(AccountWithDataSet.LOCAL)); - // Clear the table, but until we refresh the cache getAccountIdOrNull() keeps returning - // cached values. + // Remove all accounts. mDbHelper.getWritableDatabase().execSQL("delete from " + Tables.ACCOUNTS); - assertEquals((Long) a1id, mDbHelper.getAccountIdOrNull(AccountWithDataSet.LOCAL)); - - // refreshAccountCache() clears the cache. - mDbHelper.refreshAccountCache(); assertNull(mDbHelper.getAccountIdOrNull(AccountWithDataSet.LOCAL)); assertNull(mDbHelper.getAccountIdOrNull(a1)); |