diff options
author | Makoto Onuki <omakoto@google.com> | 2012-03-29 11:06:05 -0700 |
---|---|---|
committer | Makoto Onuki <omakoto@google.com> | 2012-03-29 11:18:26 -0700 |
commit | 583b1364980fd46a5012825886af3160752ff19c (patch) | |
tree | 651786b980b6e6463a24034119a1fb48ac2d7b5b /tests/src/com/android/providers/contacts/GlobalSearchSupportTest.java | |
parent | ce9aaecfe56e708d5f8fa9713e07c013731f27ab (diff) | |
download | packages_providers_ContactsProvider-583b1364980fd46a5012825886af3160752ff19c.zip packages_providers_ContactsProvider-583b1364980fd46a5012825886af3160752ff19c.tar.gz packages_providers_ContactsProvider-583b1364980fd46a5012825886af3160752ff19c.tar.bz2 |
Make unit tests not crash
Workaround for "Cursor window allocation of 2048 kb failed" during
ContactAggregatorTest.
This should be some kind of OOM because if I run only ContactAggregatorTest
it passes without a crash.
Couldn't figure out the root cause. Instead of spending too much time on it,
decided to mark move all large tests except for ContactsProvider2Test to
medium.
Also did some cleanup for SynchronousContactsProvider2 and
SynchronousProfileProvider.
Bug 6249848
Change-Id: I51d80db1e4025ff20642bc3abf8074f882da47d8
Diffstat (limited to 'tests/src/com/android/providers/contacts/GlobalSearchSupportTest.java')
-rw-r--r-- | tests/src/com/android/providers/contacts/GlobalSearchSupportTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/com/android/providers/contacts/GlobalSearchSupportTest.java b/tests/src/com/android/providers/contacts/GlobalSearchSupportTest.java index 9bfe9d6..3c95c11 100644 --- a/tests/src/com/android/providers/contacts/GlobalSearchSupportTest.java +++ b/tests/src/com/android/providers/contacts/GlobalSearchSupportTest.java @@ -27,7 +27,7 @@ import android.provider.ContactsContract.Contacts; import android.provider.ContactsContract.Data; import android.provider.ContactsContract.Intents; import android.provider.ContactsContract.StatusUpdates; -import android.test.suitebuilder.annotation.LargeTest; +import android.test.suitebuilder.annotation.MediumTest; /** * Unit tests for {@link GlobalSearchSupport}. @@ -39,7 +39,7 @@ import android.test.suitebuilder.annotation.LargeTest; * com.android.providers.contacts.tests/android.test.InstrumentationTestRunner * </pre></code> */ -@LargeTest +@MediumTest public class GlobalSearchSupportTest extends BaseContactsProvider2Test { public void testSearchSuggestionsNotInDefaultDirectory() throws Exception { |