commit | 5491f0455b209e5fd9cc9f037b614a02dc2ddb5d | [log] [tgz] |
---|---|---|
author | Mist Liao <Mist_Liao@asus.com> | Fri Apr 01 18:53:12 2011 +0800 |
committer | Brian Muramatsu <btmura@google.com> | Fri Apr 01 12:49:24 2011 -0700 |
tree | 040521db954dff3f074a558f2f378b3eaedea54e | |
parent | bc3f0d70eb64d09f975e8173950fb5e08f49ffc3 [diff] |
Wait for receiving the remove account broadcast from the last testcase Wait for receiving the remove account broadcast from the last testcase to avoid testGetAndSetSyncAutomatically testcase fail. Change-Id: I132df328114f5bbce01081ea9c84d6aa9f54b8af
diff --git a/tests/tests/content/src/android/content/cts/ContentResolverSyncTestCase.java b/tests/tests/content/src/android/content/cts/ContentResolverSyncTestCase.java index 4d7ca6d..b8c5d2e 100644 --- a/tests/tests/content/src/android/content/cts/ContentResolverSyncTestCase.java +++ b/tests/tests/content/src/android/content/cts/ContentResolverSyncTestCase.java
@@ -229,6 +229,10 @@ * Test if we can set and get the SyncAutomatically switch for an account */ public void testGetAndSetSyncAutomatically() { + try { + Thread.sleep(5000); + } catch (InterruptedException e) { + } // Prevent auto sync ContentResolver.setMasterSyncAutomatically(false); assertEquals(false, ContentResolver.getMasterSyncAutomatically());