Merge "close file stuffs before deleted in teardown" into jb-dev
diff --git a/tests/tests/location/src/android/location/cts/LocationManagerTest.java b/tests/tests/location/src/android/location/cts/LocationManagerTest.java
index 07091cc..bee0671 100755
--- a/tests/tests/location/src/android/location/cts/LocationManagerTest.java
+++ b/tests/tests/location/src/android/location/cts/LocationManagerTest.java
@@ -36,6 +36,7 @@
import android.provider.Settings;
import android.test.InstrumentationTestCase;
+import java.lang.Thread;
import java.util.List;
/**
@@ -606,6 +607,9 @@
// now update to trigger exit proximity proximity
mIntentReceiver.clearReceivedIntents();
+
+ // delay 2 seconds since location update in less than 1s will be neglected.
+ Thread.sleep(2000);
updateLocation(20, 20);
waitForReceiveBroadcast();
assertProximityType(false);