MDM URL Restriction unit test stability fix
Java side. Reduced thread sleep time.
Change-Id: I293ed842d85e3835c1e8aeea6b496d25c092800f
diff --git a/src/com/android/browser/mdm/tests/URLRestrictionsTest.java b/src/com/android/browser/mdm/tests/URLRestrictionsTest.java
index bffd5d5..a818da6 100644
--- a/src/com/android/browser/mdm/tests/URLRestrictionsTest.java
+++ b/src/com/android/browser/mdm/tests/URLRestrictionsTest.java
@@ -33,7 +33,6 @@
import android.app.Instrumentation;
import android.os.Bundle;
import android.test.ActivityInstrumentationTestCase2;
-import android.test.UiThreadTest;
import android.util.Log;
import com.android.browser.BrowserActivity;
@@ -77,7 +76,7 @@
// Wait for native to post the result
while(!URLFilterRestrictionJNI.getInstance().isBlockedResultReady()) {
try {
- Thread.sleep(200);
+ Thread.sleep(10);
} catch (InterruptedException e) {
e.printStackTrace();
}